]> git.openstreetmap.org Git - rails.git/commitdiff
Remove the language block from around the guidance
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Mar 2023 18:13:56 +0000 (18:13 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Mar 2023 09:55:41 +0000 (09:55 +0000)
This was unnecessary and also incorrect. The guidance is shown in the users
own language, not in the @locale of the copyright statement, and so
doesn't need any language wrapping and certainly not stating that it's in
the @locale.

app/views/site/copyright.html.erb

index 3253aebe1121c1cfe8b7fc045f629c5e4517db3b..9038384610f5c88565626d9d85ee28b6dc3988a7 100644 (file)
@@ -3,19 +3,17 @@
   <!-- Maybe ease foreigners back to their native page -->
 
     <% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %>
-      <%= tag.div :lang => @locale, :dir => t("html.dir", :locale => @locale) do %>
-        <h1><%= t ".native.title" %></h1>
-        <p>
-          <%= t ".native.html",
-                :native_link => link_to(t(".native.native_link"),
-                                        :controller => "site",
-                                        :action => "copyright",
-                                        :copyright_locale => nil),
-                :mapping_link => link_to(t(".native.mapping_link"),
-                                         :controller => "site",
-                                         :action => "index") %>
-        </p>
-      <% end %>
+      <h1><%= t ".native.title" %></h1>
+      <p>
+        <%= t ".native.html",
+              :native_link => link_to(t(".native.native_link"),
+                                      :controller => "site",
+                                      :action => "copyright",
+                                      :copyright_locale => nil),
+              :mapping_link => link_to(t(".native.mapping_link"),
+                                       :controller => "site",
+                                       :action => "index") %>
+      </p>
       <hr />
     <% end %>
   <% else %>