]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/old_nodes/show.html.erb
Link to previous/next versions from node version pages
[rails.git] / app / views / old_nodes / show.html.erb
index b5758b44a77b0c44b90c4604331391fae46f33c6..ba7c10ecb5b63f1d15af05709f9914e59e9cd884 100644 (file)
@@ -9,3 +9,15 @@
     <%= link_to t("browse.download_xml"), node_version_path(*@feature.id) %>
   </div>
 <% end %>
+
+<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>