]> git.openstreetmap.org Git - rails.git/blob - app/views/old_relations/show.html.erb
dd52b383370dbcb14cfd0748dc73cbae37e54947
[rails.git] / app / views / old_relations / show.html.erb
1 <% set_title t("browse.relation.title_html", :name => printable_name(@feature)) %>
2
3 <%= render "sidebar_header", :title => t("browse.relation.title_html", :name => printable_name(@feature)) %>
4
5 <%= render :partial => "browse/relation", :object => @feature %>
6
7 <% unless @feature.redacted? %>
8   <div class='secondary-actions'>
9     <%= link_to t("browse.download_xml"), relation_version_path(*@feature.id) %>
10   </div>
11 <% end %>
12
13 <div class='secondary-actions'>
14   <% if @feature.version > 1 %>
15     <%= link_to "<< #{t('browse.version')} ##{@feature.version - 1}", old_relation_path(@feature.relation_id, @feature.version - 1) %>
16     &middot;
17   <% end %>
18   <%= link_to t("browse.view_history"), relation_history_path(@feature.relation_id) %>
19   <% if @feature.version < @feature.current_relation.version %>
20     &middot;
21     <%= link_to "#{t('browse.version')} ##{@feature.version + 1} >>", old_relation_path(@feature.relation_id, @feature.version + 1) %>
22   <% end %>
23 </div>