From 1a75b1ba72090d33249d5238bdda81b30fbd59fe Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 15 Jan 2020 12:09:06 +0100 Subject: [PATCH] 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. --- app/views/site/copyright.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/site/copyright.html.erb b/app/views/site/copyright.html.erb index 75f4e878d..a8506e902 100644 --- a/app/views/site/copyright.html.erb +++ b/app/views/site/copyright.html.erb @@ -3,7 +3,7 @@ <% 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 %>

<%= t ".native.title" %>

<%= t ".native.html", @@ -20,8 +20,8 @@ <% end %> <% else %> - <%= 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 %>

<%= t ".foreign.title" %>

<%= t ".foreign.html", -- 2.43.2