]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/timeout.html.erb
erblint: fix remaining single quoted strings
[rails.git] / app / views / browse / timeout.html.erb
index de102e60f29c5dddcf0c6a3bb2fc035bb176dd5a..a9f53db15bd782a04447cb364eaa4bd7a5d5da35 100644 (file)
@@ -1,12 +1,4 @@
-<%
-  browse_timeout_type = {
-    'node' => I18n.t('.type.node'),
-    'way' => I18n.t('.type.way'),
-    'relation' => I18n.t('.type.relation'),
-    'changeset' => I18n.t('.type.changeset'),
-  };
-%>
 <div class="browse-section">
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-  <%= t '.sorry', :type=> browse_timeout_type[@type] , :id => params[:id] %>
+  <%= t ".sorry", :type => t(".type.#{@type}"), :id => params[:id] %>
 </div>