]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/old_elements/index.html.erb
Convert api element history actions to versions resources
[rails.git] / app / views / old_elements / index.html.erb
index d4ecbfa60480c618041bb7902bd601abd91ec644..eaf7787fa8d2c6f92e7399ee70e9ecb2d25d0a63 100644 (file)
@@ -5,7 +5,7 @@
 <%= render :partial => "browse/#{@type}", :collection => @feature.send(:"old_#{@type}s").reverse %>
 
 <div class='secondary-actions'>
-  <%= link_to t("browse.download_xml"), :controller => "api/old_#{@type.pluralize}", :action => "history" %>
+  <%= link_to t("browse.download_xml"), send(:"api_#{@type}_versions_path", @feature.id) %>
   &middot;
   <%= link_to t("browse.view_details"), :controller => @type.pluralize, :action => :show %>
   <% if params[:show_redactions] %>