]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/old_nodes/show.html.erb
Localisation updates from https://translatewiki.net.
[rails.git] / app / views / old_nodes / show.html.erb
index 6a16c789c3feafb347723aa73ed438783cc53e08..b69c297233b89878f2f4b2720eea8c8c736c9823 100644 (file)
@@ -5,5 +5,21 @@
 <%= render :partial => "browse/node", :object => @feature %>
 
 <div class='secondary-actions'>
-  <%= link_to t("browse.download_xml"), node_version_path(*@feature.id) %>
+  <% unless @feature.redacted? %>
+    <%= link_to t("browse.download_xml"), node_version_path(*@feature.id) %>
+    &middot;
+  <% end %>
+  <%= link_to t("browse.view_details"), node_path(@feature.node_id) %>
+</div>
+
+<div class='secondary-actions'>
+  <% if @feature.version > 1 %>
+    <%= link_to "<< #{t('browse.version')} ##{@feature.version - 1}", old_node_path(@feature.node_id, @feature.version - 1) %>
+    &middot;
+  <% end %>
+  <%= link_to t("browse.view_history"), node_history_path(@feature.node_id) %>
+  <% if @feature.version < @feature.current_node.version %>
+    &middot;
+    <%= link_to "#{t('browse.version')} ##{@feature.version + 1} >>", old_node_path(@feature.node_id, @feature.version + 1) %>
+  <% end %>
 </div>