]> git.openstreetmap.org Git - rails.git/blob - app/views/old_relations/show.html.erb
Merge remote-tracking branch 'upstream/pull/4480'
[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 <div class='secondary-actions'>
8   <% unless @feature.redacted? %>
9     <%= link_to t("browse.download_xml"), relation_version_path(*@feature.id) %>
10     &middot;
11   <% end %>
12   <%= link_to t("browse.view_details"), relation_path(@feature.relation_id) %>
13 </div>
14
15 <div class='secondary-actions'>
16   <% if @feature.version > 1 %>
17     <%= link_to "<< #{t('browse.version')} ##{@feature.version - 1}", old_relation_path(@feature.relation_id, @feature.version - 1) %>
18     &middot;
19   <% end %>
20   <%= link_to t("browse.view_history"), relation_history_path(@feature.relation_id) %>
21   <% if @feature.version < @feature.current_relation.version %>
22     &middot;
23     <%= link_to "#{t('browse.version')} ##{@feature.version + 1} >>", old_relation_path(@feature.relation_id, @feature.version + 1) %>
24   <% end %>
25 </div>