]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/history.html.erb
Pluralize old_ controllers
[rails.git] / app / views / browse / history.html.erb
index fa483bfb06bcceead2914f9e70e3a13fcc2d4467..6cf0a35698fc6e8eadcdf9337a54692a0dc9665b 100644 (file)
@@ -2,13 +2,13 @@
 
 <h2>
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-  <%= t("browse.#{@type}.history_title", :name => printable_name(@feature)) %>
+  <%= raw t("browse.#{@type}.history_title", :name => printable_name(@feature)) %>
 </h2>
 
 <%= render :partial => @type, :collection => @feature.send("old_#{@type}s").reverse %>
 
 <div class='secondary-actions'>
-  <%= link_to(t('browse.download_xml'), :controller => "old_#{@type}", :action => "history") %>
+  <%= link_to(t('browse.download_xml'), :controller => "old_#{@type.pluralize}", :action => "history") %>
   &middot;
   <%= link_to(t('browse.view_details'), :action => @type) %>
 </div>