Skip to content

Commit 17f8f5f

Browse files
committed
Cleanup linting errors and minor updates
1 parent a8b2c2e commit 17f8f5f

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017-2022 bitcoincash.org
3+
Copyright (c) 2017-2025 bitcoincash.org
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

views/graphics.html.erb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
<meta property="og:title" content="<%= I18n.t(:'meta.graphics.og.title').strip %>">
1313
<meta property="og:description" content="<%= I18n.t(:'meta.graphics.og.description').strip %>">
1414
<meta property="og:image" content="https://www.bitcoincash.org/img/bitcoincash-twitter.webp">
15-
<%- if ['ar', 'fa'].include?(I18n.locale.to_s.split('-').first) -%>
15+
<%- if ['ar', 'fa'].include?(I18n.locale.to_s.split('-').first) %>
1616
<style>
1717
section { direction: rtl; }
1818
</style>
19-
<%- end -%>
20-
<link rel="preconnect" href="https://fonts.gstatic.com" />
21-
<link href="/css/deps.min.css?v=<%= Digest::SHA256.file 'html/css/deps.min.css' %>" rel="stylesheet" type="text/css" media="all" />
22-
<link href="/css/custom.min.css?v=<%= Digest::SHA256.file 'html/css/custom.min.css' %>" rel="stylesheet" type="text/css" media="all" />
23-
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet" type="text/css" media="all" />
19+
<%- end %>
20+
<link rel="preconnect" href="https://fonts.gstatic.com">
21+
<link href="/css/deps.min.css?v=<%= Digest::SHA256.file 'html/css/deps.min.css' %>" rel="stylesheet" type="text/css" media="all">
22+
<link href="/css/custom.min.css?v=<%= Digest::SHA256.file 'html/css/custom.min.css' %>" rel="stylesheet" type="text/css" media="all">
23+
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet" type="text/css" media="all">
2424
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-17656782-2"></script>
2525
<script>
2626
window.dataLayer = window.dataLayer || [];
@@ -30,7 +30,7 @@
3030
gtag('config', 'UA-17656782-2');
3131
</script>
3232
</head>
33-
<body class=" ">
33+
<body>
3434
<a href="#" id="start"></a>
3535
<header id="fh5co-header">
3636
<div class="container">

views/index.html.erb

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
<meta property="og:title" content="<%= I18n.t(:'meta.index.og.title').strip %>">
1414
<meta property="og:description" content="<%= I18n.t(:'meta.index.og.description').strip %>">
1515
<meta property="og:image" content="https://www.bitcoincash.org/img/bitcoincash-twitter.webp">
16-
<%- if ['ar', 'fa'].include?(I18n.locale.to_s.split('-').first) -%>
16+
<%- if ['ar', 'fa'].include?(I18n.locale.to_s.split('-').first) %>
1717
<style>
1818
section { direction: rtl; }
1919
</style>
20-
<%- end -%>
21-
<link rel="preconnect" href="https://fonts.gstatic.com" />
22-
<link href="/css/deps.min.css?v=<%= Digest::SHA256.file 'html/css/deps.min.css' %>" rel="stylesheet" type="text/css" media="all" />
23-
<link href="/css/theme.min.css?v=<%= Digest::SHA256.file 'html/css/theme.min.css' %>" rel="stylesheet" type="text/css" media="all" />
24-
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet" type="text/css" media="all" />
20+
<%- end %>
21+
<link rel="preconnect" href="https://fonts.gstatic.com">
22+
<link href="/css/deps.min.css?v=<%= Digest::SHA256.file 'html/css/deps.min.css' %>" rel="stylesheet" type="text/css" media="all">
23+
<link href="/css/theme.min.css?v=<%= Digest::SHA256.file 'html/css/theme.min.css' %>" rel="stylesheet" type="text/css" media="all">
24+
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet" type="text/css" media="all">
2525
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4P1RG1J9TQ"></script>
2626
<script>
2727
window.dataLayer = window.dataLayer || [];
@@ -55,19 +55,19 @@
5555
<span><%= I18n.t(:'sections.wallets').strip %></span>
5656
</a>
5757
</li>
58-
<%- if !I18n.t(:'content.why').is_a?(String) -%>
58+
<%- if !I18n.t(:'content.why').is_a?(String) %>
5959
<li>
6060
<a href="#why" data-nav-section="why" class="inner-link">
6161
<span><%= I18n.t(:'sections.benefits').strip %></span>
6262
</a>
6363
</li>
64-
<%- else -%>
64+
<%- else %>
6565
<li>
6666
<a href="#why" data-nav-section="faq" class="inner-link">
6767
<span><%= I18n.t(:'sections.faq').strip %></span>
6868
</a>
6969
</li>
70-
<%- end -%>
70+
<%- end %>
7171
<li>
7272
<a href="#nodes" data-nav-section="nodes" class="inner-link">
7373
<span><%= I18n.t(:'sections.nodes').strip %></span>
@@ -95,13 +95,13 @@
9595
<%= I18n.t(:'sections.exchanges').strip %>
9696
</a>
9797
</li>
98-
<%- if I18n.exists?(:'sections.graphics') -%>
98+
<%- if I18n.exists?(:'sections.graphics') %>
9999
<li>
100100
<a href="graphics/" class="external">
101101
<%= I18n.t(:'sections.graphics').strip %>
102102
</a>
103103
</li>
104-
<%- end -%>
104+
<%- end %>
105105
</ul>
106106
</div>
107107
</div>
@@ -118,17 +118,17 @@
118118
I18n.available_locales.map do |locale|
119119
[locale, I18n.t(:language, :locale => locale).strip] unless locale == :tl
120120
end.compact.sort_by { |pair| pair[1] }.each_slice(8) do |group|
121-
-%>
121+
%>
122122
<ul class="menu-vertical">
123-
<%- group.each do |pair| -%>
123+
<%- group.each do |pair| %>
124124
<li>
125125
<a href="/<%= pair[0].to_s.downcase %>/" class="external">
126126
<%= pair[1] %>
127127
</a>
128128
</li>
129-
<%- end -%>
129+
<%- end %>
130130
</ul>
131-
<%- end -%>
131+
<%- end %>
132132
</div>
133133
</div>
134134
</div>
@@ -292,7 +292,7 @@
292292
</div>
293293
</div>
294294
</section>
295-
<%- if !I18n.t(:'content.faq').is_a?(String) -%>
295+
<%- if !I18n.t(:'content.faq').is_a?(String) %>
296296
<a href="#" id="faq"></a>
297297
<section class="space--xxs" id="faq-section" data-section="faq">
298298
<div class="container">
@@ -306,14 +306,14 @@
306306
<% I18n.t(:'content.faq').each do |qa| %><%= ' ' * 16 %>
307307
<p class="question"><%= qa[:question].strip %></p>
308308
<%= qa[:answer].map { |a| "<p>#{a.strip}</p>" }.join("\n#{' ' * 14}") %>
309-
<%- end -%>
309+
<%- end %>
310310
</div>
311311
</div>
312312
</div>
313313
</section>
314-
<%- end -%>
314+
<%- end %>
315315
<a href="#" id="why"></a>
316-
<%- if !I18n.t(:'content.why').is_a?(String) -%>
316+
<%- if !I18n.t(:'content.why').is_a?(String) %>
317317
<section class="space--xxs" id="why-section" data-section="why">
318318
<div class="container">
319319
<div class="row text-center">
@@ -323,16 +323,16 @@
323323
</div>
324324
<div class="row">
325325
<div class="col-xs-12">
326-
<%- I18n.t(:'content.why').each do |qa| -%>
326+
<%- I18n.t(:'content.why').each do |qa| %>
327327
<p class="question"><%= qa[:benefit].strip %></p>
328328
<%= qa[:descrip].map { |a| "<p>#{a.strip}</p>" }.join("\n#{' ' * 14}") %>
329-
<%- end -%>
329+
<%- end %>
330330
</div>
331331
</div>
332332
</div>
333333
</section>
334-
<%- end -%>
335-
<%- if !I18n.t(:'content.benefits').is_a?(String) -%>
334+
<%- end %>
335+
<%- if !I18n.t(:'content.benefits').is_a?(String) %>
336336
<section class="space--xxs" id="merchant-benefits-section" data-section="benefits">
337337
<div class="container">
338338
<div class="row text-center">
@@ -342,16 +342,16 @@
342342
</div>
343343
<div class="row">
344344
<div class="col-xs-12">
345-
<%- I18n.t(:'content.benefits').each do |qa| -%>
345+
<%- I18n.t(:'content.benefits').each do |qa| %>
346346
<p class="question"><%= qa[:benefit].strip %></p>
347347
<%= qa[:descrip].map { |a| "<p>#{a.strip}</p>" }.join("\n#{' ' * 14}") %>
348-
<%- end -%>
348+
<%- end %>
349349
</div>
350350
</div>
351351
</div>
352352
</section>
353-
<%- end -%>
354-
<%- if !I18n.t(:'content.history').is_a?(String) -%>
353+
<%- end %>
354+
<%- if !I18n.t(:'content.history').is_a?(String) %>
355355
<section class="space--xxs" id="history-section" data-section="history">
356356
<div class="container">
357357
<div class="row text-center">
@@ -366,8 +366,8 @@
366366
</div>
367367
</div>
368368
</section>
369-
<%- end -%>
370-
<%- if !I18n.t(:'content.development').is_a?(String) -%>
369+
<%- end %>
370+
<%- if !I18n.t(:'content.development').is_a?(String) %>
371371
<section class="space--xxs" id="development-section" data-section="development">
372372
<div class="container">
373373
<div class="row text-center">
@@ -382,7 +382,7 @@
382382
</div>
383383
</div>
384384
</section>
385-
<%- end -%>
385+
<%- end %>
386386
<a href="#" id="nodes"></a>
387387
<section class="space--xxs text-center gray border-bottom" id="nodes-section" data-section="nodes">
388388
<div class="container nodes">

0 commit comments

Comments
 (0)