]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/history.html.erb
Merge remote-tracking branch 'upstream/pull/5017'
[rails.git] / app / views / browse / history.html.erb
1 <% set_title(t("browse.#{@type}.history_title_html", :name => printable_element_name(@feature))) %>
2
3 <%= render "sidebar_header", :title => t("browse.#{@type}.history_title_html", :name => printable_element_name(@feature)) %>
4
5 <%= render :partial => "browse/#{@type}", :collection => @feature.send(:"old_#{@type}s").reverse %>
6
7 <div class='secondary-actions'>
8   <%= link_to t("browse.download_xml"), :controller => "api/old_#{@type.pluralize}", :action => "history" %>
9   &middot;
10   <%= link_to t("browse.view_details"), :controller => @type.pluralize, :action => :show %>
11   <% if params[:show_redactions] %>
12     &middot;
13     <%= link_to t("browse.view_history") %>
14   <% elsif current_user&.moderator? %>
15     &middot;
16     <%= link_to t("browse.view_unredacted_history"), :params => { :show_redactions => true } %>
17   <% end %>
18 </div>