]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/history.html.erb
Add link to unredacted element history for moderators
[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 => @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"), :action => @type) %>
11   <% if params[:show_redactions] %>
12     &middot;
13     <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>
14   <% elsif current_user&.moderator? %>
15     &middot;
16     <%= link_to(t("browse.view_unredacted_history"), :action => "#{@type}_history", :params => { :show_redactions => true }) %>
17   <% end %>
18 </div>