annotate app/views/layouts/application.html.erb @ 487:5246edd5b8ad

Update gems and remove jruby support
author nanaya <me@nanaya.net>
date Tue, 17 Jan 2023 01:42:57 +0900
parents b26dd8fa1c26
children 361ab9e7ffad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 <!DOCTYPE html>
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2 <html>
139
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
3 <head>
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
4 <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
5 <title><%= html_title %></title>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
6 <meta name="viewport" content="width=device-width, initial-scale=1">
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
7 <%= stylesheet_link_tag "application", :media => "all" %>
139
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
8 </head>
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
9 <body>
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
10 <nav class="navbar navbar-expand-lg navbar-light bg-light">
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
11 <div class="container">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
12 <%= link_to "Zeropaste", root_path, :class => "navbar-brand" %>
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
13
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
14 <button
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
15 type="button"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
16 class="navbar-toggler"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
17 data-toggle="collapse"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
18 data-target="#navbar-menu"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
19 aria-controls="navbar-menu"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
20 aria-expanded="false"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
21 aria-label="<%= t('.toggle_nav') %>"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
22 >
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
23 <span class="navbar-toggler-icon"></span>
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
24 </button>
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 390
diff changeset
25
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
26 <div class="collapse navbar-collapse" id="navbar-menu">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
27 <ul class="navbar-nav ml-auto">
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
28 <li class="nav-item">
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
29 <%= link_to t(".about"), "#", {
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
30 data: {
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
31 toggle: "modal",
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
32 target: "#modal-about",
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
33 },
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
34 class: 'nav-link',
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
35 }
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
36 %>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
37 </li>
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
38 <li class="nav-item">
472
b26dd8fa1c26 Update link to source
nanaya <me@nanaya.pro>
parents: 469
diff changeset
39 <a class="nav-link" href="https://hg.sr.ht/~nanaya/zeropaste"><%= t(".source") %></a>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
40 </li>
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
41 <li class="nav-item">
410
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
42 <%= link_to t(".donate"),
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
43 "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GV9AHVHQAHXLJ",
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
44 class: 'nav-link'
410
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
45 %>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
46 </li>
410
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
47 </ul>
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
48 </div>
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
49 </div>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
50 </nav>
139
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
51
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
52 <div class="container">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
53 <div class="row"><div class="col-12">
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
54 <h1 class="h2 pt-3 pb-1"><%= content_for :title %></h1>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
55 </div></div>
386
bf9e350f8a2b Add styling to the alerts.
nanaya <me@myconan.net>
parents: 385
diff changeset
56
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
57 <%= render "layouts/alerts" %>
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
58
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 371
diff changeset
59 <%= yield %>
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
60
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
61 </div>
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
62
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
63 <div class="modal fade" id="modal-about" tabindex="-1" role="dialog" aria-labelledby="about-modal-label" aria-hidden="true">
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
64 <div class="modal-dialog" role="document">
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
65 <div class="modal-content">
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
66 <div class="modal-header">
409
130dc1054fd2 Fix styling.
nanaya <me@myconan.net>
parents: 408
diff changeset
67 <h4 class="modal-title" id="about-modal-label"><%= t(".about") %></h4>
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
68 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
69
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
70 <div class="modal-body">
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
71 <%= render "layouts/about" %>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
72 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
73 <div class="modal-footer">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
74 <button type="button" class="btn btn-secondary" data-dismiss="modal">
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
75 <%= t("buttons.close") %>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
76 </button>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
77 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
78 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
79 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
80 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
81
468
802dcd44188e Now with webpacker
nanaya <me@nanaya.pro>
parents: 450
diff changeset
82 <%= javascript_pack_tag "application" %>
139
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
83 </body>
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
84 </html>