]> git.openstreetmap.org Git - rails.git/blob - app/views/old_ways/show.html.erb
Merge remote-tracking branch 'upstream/pull/4529'
[rails.git] / app / views / old_ways / show.html.erb
1 <% set_title t("browse.way.title_html", :name => printable_element_name(@feature)) %>
2
3 <%= render "sidebar_header", :title => t("browse.way.title_html", :name => printable_element_name(@feature)) %>
4
5 <%= render :partial => "browse/way", :object => @feature %>
6
7 <div class='secondary-actions'>
8   <% unless @feature.redacted? %>
9     <%= link_to t("browse.download_xml"), way_version_path(*@feature.id) %>
10     &middot;
11   <% end %>
12   <%= link_to t("browse.view_details"), way_path(@feature.way_id) %>
13 </div>
14
15 <div class='secondary-actions'>
16   <% if @feature.version > 1 %>
17     <%= link_to old_way_path(@feature.way_id, @feature.version - 1), :class => "icon-link" do %>
18       <%= previous_page_svg_tag :height => 11 %>
19       <%= "#{t('browse.version')} ##{@feature.version - 1}" %>
20     <% end %>
21     &middot;
22   <% end %>
23   <%= link_to t("browse.view_history"), way_history_path(@feature.way_id) %>
24   <% if @feature.version < @feature.current_way.version %>
25     &middot;
26     <%= link_to old_way_path(@feature.way_id, @feature.version + 1), :class => "icon-link" do %>
27       <%= "#{t('browse.version')} ##{@feature.version + 1}" %>
28       <%= next_page_svg_tag :height => 11 %>
29     <% end %>
30   <% end %>
31 </div>