Minor tweaks to copyright heading

This fixes a small bug where the hr was shown even when not required,
by ensuring the test is run before creating the content.

Also fixes where an h1 tag was used instead of a div.
This commit is contained in:
Andy Allan 2020-01-15 12:09:06 +01:00
parent 2190aad23d
commit 1a75b1ba72

View file

@ -3,7 +3,7 @@
<!-- Maybe ease foreigners back to their native page --> <!-- Maybe ease foreigners back to their native page -->
<% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %> <% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %>
<%= tag.h1 :lang => @locale, :dir => t("html.dir", :locale => @locale) do %> <%= tag.div :lang => @locale, :dir => t("html.dir", :locale => @locale) do %>
<h1><%= t ".native.title" %></h1> <h1><%= t ".native.title" %></h1>
<p> <p>
<%= t ".native.html", <%= t ".native.html",
@ -20,8 +20,8 @@
<% end %> <% end %>
<% else %> <% else %>
<!-- Maybe note that this page has been translated --> <!-- Maybe note that this page has been translated -->
<%= tag.div :lang => "en", :dir => t("html.dir", :locale => "en") do %> <% if t(".legal_babble", :locale => @locale) != t(".legal_babble", :locale => :en) %>
<% if t(".legal_babble", :locale => @locale) != t(".legal_babble", :locale => :en) %> <%= tag.div :lang => "en", :dir => t("html.dir", :locale => "en") do %>
<h1><%= t ".foreign.title" %></h1> <h1><%= t ".foreign.title" %></h1>
<p> <p>
<%= t ".foreign.html", <%= t ".foreign.html",