|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en" dir="ltr"> |
3 | | -<head> |
4 | | - <%= render 'layouts/head' %> |
5 | | -</head> |
6 | | -<body class="<%= Rails.env.development? ? 'development' : '' %>" |
| 3 | + <head> |
| 4 | + <%= render 'layouts/head' %> |
| 5 | + </head> |
| 6 | + <body class="<%= Rails.env.development? ? 'development' : '' %>" |
7 | 7 | data-user-id="<%= user_signed_in? ? current_user.id : 'none' %>" |
8 | 8 | data-mathjax="<%= SiteSetting['MathJaxEnabled'] %>"> |
9 | | - <%= render 'layouts/header' %> |
10 | | - |
11 | | - <main class="container"> |
12 | | - <div class="grid"> |
13 | | - <div class="grid--cell is-8-lg is-12"> |
14 | | - <div class="has-padding-4"> |
15 | | - <% {notice: :info, alert: :danger, danger: :danger, success: :success, info: :info, warning: :warning}.each do |mt, cc| %> |
16 | | - <% if flash[mt].present? %> |
17 | | - <div class="notice is-<%= cc.to_s %>"> |
18 | | - <%= flash[mt] %> |
19 | | - </div> |
| 9 | + <%= render 'layouts/header' %> |
| 10 | + |
| 11 | + <main class="container"> |
| 12 | + <div class="grid"> |
| 13 | + <div class="grid--cell is-8-lg is-12"> |
| 14 | + <div class="has-padding-4"> |
| 15 | + <% {notice: :info, alert: :danger, danger: :danger, success: :success, info: :info, warning: :warning}.each do |mt, cc| %> |
| 16 | + <% if flash[mt].present? %> |
| 17 | + <div class="notice is-<%= cc.to_s %>"> |
| 18 | + <%= flash[mt] %> |
| 19 | + </div> |
| 20 | + <% end %> |
20 | 21 | <% end %> |
21 | | - <% end %> |
22 | | - |
23 | 22 |
|
24 | | - <% if @first_visit_notice %> |
25 | | - <% notice = SiteSetting['FirstVisitGuidance'] %> |
26 | | - <% if notice.present? %> |
27 | | - <div class="notice js-first-visit-notice" id="fvn"> |
28 | | - <button type="button" class="button is-close-button" data-dismiss="#fvn" aria-label="Close" id="fvn-dismiss"> |
29 | | - <span aria-hidden="true">×</span> |
30 | | - </button> |
31 | | - <%= raw(sanitize(notice, scrubber: scrubber)) %> |
32 | | - </div> |
| 23 | + <% if @first_visit_notice %> |
| 24 | + <% notice = SiteSetting['FirstVisitGuidance'] %> |
| 25 | + <% if notice.present? %> |
| 26 | + <div class="notice js-first-visit-notice" id="fvn"> |
| 27 | + <button type="button" class="button is-close-button" data-dismiss="#fvn" aria-label="Close" id="fvn-dismiss"> |
| 28 | + <span aria-hidden="true">×</span> |
| 29 | + </button> |
| 30 | + <%= raw(sanitize(notice, scrubber: scrubber)) %> |
| 31 | + </div> |
| 32 | + <% end %> |
33 | 33 | <% end %> |
34 | | - <% end %> |
35 | 34 |
|
36 | | - <%= yield %> |
| 35 | + <%= yield %> |
| 36 | + </div> |
37 | 37 | </div> |
38 | | - </div> |
39 | 38 |
|
40 | | - <%= render 'layouts/sidebar' %> |
41 | | - </div> |
42 | | - </main> |
| 39 | + <%= render 'layouts/sidebar' %> |
| 40 | + </div> |
| 41 | + </main> |
43 | 42 |
|
44 | | - <%= render 'layouts/footer' %> |
| 43 | + <%= render 'layouts/footer' %> |
45 | 44 |
|
46 | | - <%= render 'layouts/matomo' %> |
| 45 | + <%= render 'layouts/matomo' %> |
47 | 46 |
|
48 | | - <script src="https://7zb04r9ckbwg.statuspage.io/embed/script.js"></script> |
49 | | -</body> |
| 47 | + <% if Rails.env.production? %> |
| 48 | + <script src="https://7zb04r9ckbwg.statuspage.io/embed/script.js"></script> |
| 49 | + <% end %> |
| 50 | + </body> |
50 | 51 | </html> |
0 commit comments