]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/not_found.html.erb
Merge remote-tracking branch 'upstream/pull/2505'
[rails.git] / app / views / browse / not_found.html.erb
index 743ab0c8e0bb6543e427a1c99065b1f63c218649..3c4e8a4c837db40655e4c36e717fc52e22f45147 100644 (file)
@@ -1,8 +1,4 @@
-<%
-  browse_not_found_type = {
-    'node' => I18n.t('browse.not_found.type.node'),
-    'way' => I18n.t('browse.not_found.type.way'),
-    'relation' => I18n.t('browse.not_found.type.relation'),
-  };
-%>
-<p><%= t'browse.not_found.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %></p>
+<h2>
+  <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
+  <%= t ".sorry", :type => t(".type.#{@type}"), :id => params[:id] %>
+</h2>