]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/not_found.html.erb
Merge remote-tracking branch 'upstream/pull/4717'
[rails.git] / app / views / browse / not_found.html.erb
index 103eb1c932d4dea4dc16103b187842f8cd615d2c..36ee4c883769ee3b28da09693c025bb499ffb7a5 100644 (file)
@@ -1,10 +1,7 @@
-<%
-  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'),
-    'changeset' => I18n.t('browse.not_found.type.changeset'),
-  };
-%>
+<% set_title(t(".title")) %>
 
-<h2><%= t'browse.not_found.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %></h2>
+<%= render "sidebar_header", :title => t(".title") %>
+
+<div>
+  <p><%= t ".sorry", :type => t(".type.#{@type}"), :id => params[:id] %>
+</div>