X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c91bd55222419f4c88c0c4a007a02580837f3dfa..d87d06fee55c4827ade4590280f0caaf297a8217:/app/views/browse/history.html.erb diff --git a/app/views/browse/history.html.erb b/app/views/browse/history.html.erb index b557c339b..d257d25a2 100644 --- a/app/views/browse/history.html.erb +++ b/app/views/browse/history.html.erb @@ -2,17 +2,17 @@ <%= render "sidebar_header", :title => t("browse.#{@type}.history_title_html", :name => printable_element_name(@feature)) %> -<%= render :partial => @type, :collection => @feature.send(:"old_#{@type}s").reverse %> +<%= render :partial => "browse/#{@type}", :collection => @feature.send(:"old_#{@type}s").reverse %>
- <%= link_to(t("browse.download_xml"), :controller => "api/old_#{@type.pluralize}", :action => "history") %> + <%= link_to t("browse.download_xml"), :controller => "api/old_#{@type.pluralize}", :action => "history" %> · - <%= link_to(t("browse.view_details"), :action => @type) %> + <%= link_to t("browse.view_details"), :controller => "browse", :action => @type %> <% if params[:show_redactions] %> · - <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %> + <%= link_to t("browse.view_history") %> <% elsif current_user&.moderator? %> · - <%= link_to(t("browse.view_unredacted_history"), :action => "#{@type}_history", :params => { :show_redactions => true }) %> + <%= link_to t("browse.view_unredacted_history"), :params => { :show_redactions => true } %> <% end %>