Mercurial > zeropaste
annotate app/views/layouts/application.html.erb @ 493:30cf29ac9294
public-path confuses sprockets
author | nanaya <me@nanaya.net> |
---|---|
date | Tue, 17 Jan 2023 02:52:30 +0900 |
parents | cd84252dd0bf |
children |
rev | line source |
---|---|
0 | 1 <!DOCTYPE html> |
2 <html> | |
139 | 3 <head> |
4 <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
5 <title><%= html_title %></title> | |
398 | 6 <meta name="viewport" content="width=device-width, initial-scale=1"> |
489
361ab9e7ffad
Replace webpacker with esbuild and use plain js instead of coffee
nanaya <me@nanaya.net>
parents:
472
diff
changeset
|
7 <%= javascript_include_tag :application_classic %> |
361ab9e7ffad
Replace webpacker with esbuild and use plain js instead of coffee
nanaya <me@nanaya.net>
parents:
472
diff
changeset
|
8 <%= javascript_include_tag :application %> |
398 | 9 <%= stylesheet_link_tag "application", :media => "all" %> |
139 | 10 </head> |
11 <body> | |
469 | 12 <nav class="navbar navbar-expand-lg navbar-light bg-light"> |
398 | 13 <div class="container"> |
469 | 14 <%= link_to "Zeropaste", root_path, :class => "navbar-brand" %> |
15 | |
16 <button | |
17 type="button" | |
18 class="navbar-toggler" | |
19 data-toggle="collapse" | |
20 data-target="#navbar-menu" | |
21 aria-controls="navbar-menu" | |
22 aria-expanded="false" | |
23 aria-label="<%= t('.toggle_nav') %>" | |
24 > | |
25 <span class="navbar-toggler-icon"></span> | |
26 </button> | |
395 | 27 |
398 | 28 <div class="collapse navbar-collapse" id="navbar-menu"> |
469 | 29 <ul class="navbar-nav ml-auto"> |
30 <li class="nav-item"> | |
31 <%= link_to t(".about"), "#", { | |
32 data: { | |
33 toggle: "modal", | |
34 target: "#modal-about", | |
35 }, | |
36 class: 'nav-link', | |
37 } | |
408 | 38 %> |
39 </li> | |
469 | 40 <li class="nav-item"> |
491 | 41 <a class="nav-link" href="https://hg.nanaya.net/zeropaste"><%= t(".source") %></a> |
398 | 42 </li> |
469 | 43 <li class="nav-item"> |
410 | 44 <%= link_to t(".donate"), |
469 | 45 "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GV9AHVHQAHXLJ", |
46 class: 'nav-link' | |
410 | 47 %> |
398 | 48 </li> |
410 | 49 </ul> |
50 </div> | |
51 </div> | |
398 | 52 </nav> |
139 | 53 |
398 | 54 <div class="container"> |
469 | 55 <div class="row"><div class="col-12"> |
56 <h1 class="h2 pt-3 pb-1"><%= content_for :title %></h1> | |
398 | 57 </div></div> |
386 | 58 |
398 | 59 <%= render "layouts/alerts" %> |
60 | |
379 | 61 <%= yield %> |
0 | 62 |
398 | 63 </div> |
408 | 64 |
469 | 65 <div class="modal fade" id="modal-about" tabindex="-1" role="dialog" aria-labelledby="about-modal-label" aria-hidden="true"> |
408 | 66 <div class="modal-dialog" role="document"> |
67 <div class="modal-content"> | |
68 <div class="modal-header"> | |
409 | 69 <h4 class="modal-title" id="about-modal-label"><%= t(".about") %></h4> |
408 | 70 </div> |
71 | |
72 <div class="modal-body"> | |
73 <%= render "layouts/about" %> | |
74 </div> | |
75 <div class="modal-footer"> | |
469 | 76 <button type="button" class="btn btn-secondary" data-dismiss="modal"> |
408 | 77 <%= t("buttons.close") %> |
78 </button> | |
79 </div> | |
80 </div> | |
81 </div> | |
82 </div> | |
83 | |
139 | 84 </body> |
0 | 85 </html> |