|
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' : '' %>"> |
7 | | -<%= render 'layouts/header' %> |
| 3 | + <head> |
| 4 | + <%= render 'layouts/head' %> |
| 5 | + </head> |
| 6 | + <body class="<%= Rails.env.development? ? 'development' : '' %>"> |
| 7 | + <%= render 'layouts/header' %> |
8 | 8 |
|
9 | | -<main class="container"> |
10 | | - <div class="grid"> |
11 | | - <div class="grid--cell is-12"> |
12 | | - <div class="has-padding-4"> |
13 | | - <% {notice: :info, alert: :danger, danger: :danger, success: :success, info: :info, warning: :warning}.each do |mt, cc| %> |
14 | | - <% if flash[mt].present? %> |
15 | | - <div class="notice is-<%= cc.to_s %>"> |
16 | | - <%= flash[mt] %> |
17 | | - </div> |
18 | | - <% end %> |
19 | | - <% end %> |
| 9 | + <main class="container"> |
| 10 | + <div class="grid"> |
| 11 | + <div class="grid--cell is-12"> |
| 12 | + <div class="has-padding-4"> |
| 13 | + <% {notice: :info, alert: :danger, danger: :danger, success: :success, info: :info, warning: :warning}.each do |mt, cc| %> |
| 14 | + <% if flash[mt].present? %> |
| 15 | + <div class="notice is-<%= cc.to_s %>"> |
| 16 | + <%= flash[mt] %> |
| 17 | + </div> |
| 18 | + <% end %> |
| 19 | + <% end %> |
20 | 20 |
|
| 21 | + <% if @first_visit_notice %> |
| 22 | + <% notice = SiteSetting['FirstVisitGuidance'] %> |
| 23 | + <% if notice.present? %> |
| 24 | + <div class="notice js-first-visit-notice" id="fvn"> |
| 25 | + <button type="button" class="button is-close-button" data-dismiss="#fvn" aria-label="Close" id="fvn-dismiss"> |
| 26 | + <span aria-hidden="true">×</span> |
| 27 | + </button> |
| 28 | + <%= raw(sanitize(notice, scrubber: scrubber)) %> |
| 29 | + </div> |
| 30 | + <% end %> |
| 31 | + <% end %> |
21 | 32 |
|
22 | | - <% if @first_visit_notice %> |
23 | | - <% notice = SiteSetting['FirstVisitGuidance'] %> |
24 | | - <% if notice.present? %> |
25 | | - <div class="notice js-first-visit-notice" id="fvn"> |
26 | | - <button type="button" class="button is-close-button" data-dismiss="#fvn" aria-label="Close" id="fvn-dismiss"> |
27 | | - <span aria-hidden="true">×</span> |
28 | | - </button> |
29 | | - <%= raw(sanitize(notice, scrubber: scrubber)) %> |
30 | | - </div> |
31 | | - <% end %> |
32 | | - <% end %> |
33 | | - |
34 | | - <%= yield %> |
| 33 | + <%= yield %> |
| 34 | + </div> |
| 35 | + </div> |
35 | 36 | </div> |
36 | | - </div> |
37 | | - </div> |
38 | | -</main> |
| 37 | + </main> |
39 | 38 |
|
40 | | -<%= render 'layouts/footer' %> |
| 39 | + <%= render 'layouts/footer' %> |
41 | 40 |
|
42 | | -<%= render 'layouts/matomo' %> |
43 | | -</body> |
| 41 | + <%= render 'layouts/matomo' %> |
| 42 | + </body> |
44 | 43 | </html> |
0 commit comments