X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b0a741412f3ea330272c827cf4a9c577498f8de9..bfc021edf3566982671bd2bd09db3c8667fc756a:/app/views/browse/feature.html.erb
diff --git a/app/views/browse/feature.html.erb b/app/views/browse/feature.html.erb
index 86b9020a2..3b7c64a8d 100644
--- a/app/views/browse/feature.html.erb
+++ b/app/views/browse/feature.html.erb
@@ -4,10 +4,19 @@
<%= render :partial => @type, :object => @feature %>
-
- <% if @feature.visible? %>
+<% if @feature.visible? %>
+
<%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
+
+<% end %>
+
+ <% if @feature.version > 1 %>
+ <%= link_to "<< #{t('browse.version')} #1", :controller => "old_#{@type.pluralize}", :action => :show, :version => 1 %>
+ ·
+ <% end %>
+ <%= link_to t("browse.view_history"), :action => "#{@type}_history" %>
+ <% if @feature.version > 1 %>
·
+ <%= link_to "#{t('browse.version')} ##{@feature.version} >>", :controller => "old_#{@type.pluralize}", :action => :show, :version => @feature.version %>
<% end %>
- <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>