annotate app/views/layouts/application.html.erb @ 494:e508d3226214 default tip

Update gems
author nanaya <me@nanaya.net>
date Sun, 29 Oct 2023 23:24:13 +0900
parents cd84252dd0bf
children
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">
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
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
9 <%= stylesheet_link_tag "application", :media => "all" %>
139
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
10 </head>
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
11 <body>
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
12 <nav class="navbar navbar-expand-lg navbar-light bg-light">
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
13 <div class="container">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
14 <%= link_to "Zeropaste", root_path, :class => "navbar-brand" %>
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
15
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
16 <button
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
17 type="button"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
18 class="navbar-toggler"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
19 data-toggle="collapse"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
20 data-target="#navbar-menu"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
21 aria-controls="navbar-menu"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
22 aria-expanded="false"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
23 aria-label="<%= t('.toggle_nav') %>"
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
24 >
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
25 <span class="navbar-toggler-icon"></span>
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
26 </button>
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 390
diff changeset
27
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
28 <div class="collapse navbar-collapse" id="navbar-menu">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
29 <ul class="navbar-nav ml-auto">
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
30 <li class="nav-item">
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
31 <%= link_to t(".about"), "#", {
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
32 data: {
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
33 toggle: "modal",
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
34 target: "#modal-about",
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
35 },
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
36 class: 'nav-link',
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
37 }
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
38 %>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
39 </li>
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
40 <li class="nav-item">
491
cd84252dd0bf Update link to source
nanaya <me@nanaya.net>
parents: 489
diff changeset
41 <a class="nav-link" href="https://hg.nanaya.net/zeropaste"><%= t(".source") %></a>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
42 </li>
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
43 <li class="nav-item">
410
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
44 <%= link_to t(".donate"),
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
45 "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
46 class: 'nav-link'
410
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
47 %>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
48 </li>
410
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
49 </ul>
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
50 </div>
a2f8e5c80769 Fix html compliance.
nanaya <me@myconan.net>
parents: 409
diff changeset
51 </div>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
52 </nav>
139
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
53
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
54 <div class="container">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
55 <div class="row"><div class="col-12">
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
56 <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
57 </div></div>
386
bf9e350f8a2b Add styling to the alerts.
nanaya <me@myconan.net>
parents: 385
diff changeset
58
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
59 <%= render "layouts/alerts" %>
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
60
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 371
diff changeset
61 <%= yield %>
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
62
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
63 </div>
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
64
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
65 <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
66 <div class="modal-dialog" role="document">
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
67 <div class="modal-content">
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
68 <div class="modal-header">
409
130dc1054fd2 Fix styling.
nanaya <me@myconan.net>
parents: 408
diff changeset
69 <h4 class="modal-title" id="about-modal-label"><%= t(".about") %></h4>
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
70 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
71
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
72 <div class="modal-body">
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
73 <%= render "layouts/about" %>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
74 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
75 <div class="modal-footer">
469
68231013b01b Now with more bootstrap than ever
nanaya <me@nanaya.pro>
parents: 468
diff changeset
76 <button type="button" class="btn btn-secondary" data-dismiss="modal">
408
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
77 <%= t("buttons.close") %>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
78 </button>
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 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
82 </div>
f3cdc83b87b4 Add about.
nanaya <me@myconan.net>
parents: 398
diff changeset
83
139
255f8f9455a0 Simplified base layout.
Edho Arief <edho@myconan.net>
parents: 90
diff changeset
84 </body>
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
85 </html>