]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/old_ways/show.html.erb
Don't link to xml download from redacted element versions
[rails.git] / app / views / old_ways / show.html.erb
index fa69871570c4d3315bc110f324cc8719c339ea4d..6e66fa5153a94dbfe3c2f711e500af14b0a1224b 100644 (file)
@@ -3,3 +3,9 @@
 <%= render "sidebar_header", :title => t("browse.way.title_html", :name => printable_name(@feature)) %>
 
 <%= render :partial => "browse/way", :object => @feature %>
+
+<% unless @feature.redacted? %>
+  <div class='secondary-actions'>
+    <%= link_to t("browse.download_xml"), way_version_path(*@feature.id) %>
+  </div>
+<% end %>