Skip to content

Commit 62df2be

Browse files
committed
linted stripe layout
1 parent 86f25c1 commit 62df2be

1 file changed

Lines changed: 32 additions & 33 deletions

File tree

app/views/layouts/stripe.html.erb

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,41 @@
11
<!DOCTYPE html>
22
<html lang="en" dir="ltr">
3-
<head>
4-
<%= render 'layouts/head' %>
5-
<script>
6-
window.QPixel = window.QPixel || {};
7-
QPixel.stripe = new Stripe('<%= StripeHelpers.public_key %>');
8-
</script>
9-
</head>
10-
<body class="<%= Rails.env.development? ? 'development' : '' %>">
11-
<%= render 'layouts/header' %>
3+
<head>
4+
<%= render 'layouts/head' %>
5+
<script>
6+
window.QPixel = window.QPixel || {};
7+
QPixel.stripe = new Stripe('<%= StripeHelpers.public_key %>');
8+
</script>
9+
</head>
10+
<body class="<%= Rails.env.development? ? 'development' : '' %>">
11+
<%= render 'layouts/header' %>
1212

13-
<main class="container">
14-
<div class="grid">
15-
<div class="grid--cell is-12">
16-
<div class="has-padding-4">
17-
<%= render 'shared/notices' %>
13+
<main class="container">
14+
<div class="grid">
15+
<div class="grid--cell is-12">
16+
<div class="has-padding-4">
17+
<%= render 'shared/notices' %>
1818

19-
<% if @first_visit_notice %>
20-
<% notice = SiteSetting['FirstVisitGuidance'] %>
21-
<% if notice.present? %>
22-
<div class="notice js-first-visit-notice" id="fvn">
23-
<button type="button" class="button is-close-button" data-dismiss="#fvn" aria-label="Close" id="fvn-dismiss">
24-
<span aria-hidden="true">&times;</span>
25-
</button>
26-
<%= raw(sanitize(notice, scrubber: scrubber)) %>
27-
</div>
28-
<% end %>
29-
<% end %>
19+
<% if @first_visit_notice %>
20+
<% notice = SiteSetting['FirstVisitGuidance'] %>
21+
<% if notice.present? %>
22+
<div class="notice js-first-visit-notice" id="fvn">
23+
<button type="button" class="button is-close-button" data-dismiss="#fvn" aria-label="Close" id="fvn-dismiss">
24+
<span aria-hidden="true">&times;</span>
25+
</button>
26+
<%= raw(sanitize(notice, scrubber: scrubber)) %>
27+
</div>
28+
<% end %>
29+
<% end %>
3030

31-
<%= yield %>
31+
<%= yield %>
32+
</div>
33+
</div>
3234
</div>
33-
</div>
34-
</div>
35-
</main>
35+
</main>
3636

37-
<%= render 'layouts/footer' %>
37+
<%= render 'layouts/footer' %>
3838

39-
<%= render 'layouts/matomo' %>
40-
</body>
39+
<%= render 'layouts/matomo' %>
40+
</body>
4141
</html>
42-

0 commit comments

Comments
 (0)