Convert api element history actions to versions resources

This commit is contained in:
Anton Khorev 2025-02-05 17:39:26 +03:00
parent 974e404a6e
commit 98af87d1cb
16 changed files with 175 additions and 134 deletions

View 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] %>