]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/history.html.erb
Merge pull request #4550 from tomhughes/drop-user-tokens
[rails.git] / app / views / browse / history.html.erb
index bf11e8f1e20dec49bc014934701d99a82328af88..b557c339b172a9eb5e1c66f5df9e0b961f3f859f 100644 (file)
@@ -8,4 +8,11 @@
   <%= link_to(t("browse.download_xml"), :controller => "api/old_#{@type.pluralize}", :action => "history") %>
   &middot;
   <%= link_to(t("browse.view_details"), :action => @type) %>
+  <% if params[:show_redactions] %>
+    &middot;
+    <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>
+  <% elsif current_user&.moderator? %>
+    &middot;
+    <%= link_to(t("browse.view_unredacted_history"), :action => "#{@type}_history", :params => { :show_redactions => true }) %>
+  <% end %>
 </div>