]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/not_found.html.erb
Fix rubocop warning
[rails.git] / app / views / browse / not_found.html.erb
index 5fe22a68a43c600bcfe701bd6202977e88686c6e..36ee4c883769ee3b28da09693c025bb499ffb7a5 100644 (file)
@@ -1,12 +1,7 @@
-<%
-  browse_not_found_type = {
-    'node' => I18n.t('.type.node'),
-    'way' => I18n.t('.type.way'),
-    'relation' => I18n.t('.type.relation'),
-    'changeset' => I18n.t('.type.changeset'),
-  };
-%>
+<% set_title(t(".title")) %>
 
-<h2>
-    <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-    <%= t '.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>