]> git.openstreetmap.org Git - rails.git/blob - app/views/browse/feature.html.erb
Link to current and old element versions from changeset pages
[rails.git] / app / views / browse / feature.html.erb
1 <% set_title(t("browse.#{@type}.title_html", :name => printable_element_name(@feature))) %>
2
3 <%= render "sidebar_header", :title => t("browse.#{@type}.title_html", :name => printable_element_name(@feature)) %>
4
5 <%= render :partial => @type, :object => @feature %>
6
7 <% if @feature.visible? %>
8   <div class='secondary-actions'>
9     <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
10   </div>
11 <% end %>
12 <div class='secondary-actions'>
13   <% if @feature.version > 1 %>
14     <%= link_to({ :controller => "old_#{@type.pluralize}", :action => :show, :version => 1 }, :class => "icon-link") do %>
15       <%= previous_page_svg_tag :height => 11, :count => 2 %>
16       <%= "#{t('browse.version')} #1" %>
17     <% end %>
18     &middot;
19   <% end %>
20     <%= link_to t("browse.view_history"), :action => "#{@type}_history" %>
21   <% if @feature.version > 1 %>
22     &middot;
23     <%= link_to({ :controller => "old_#{@type.pluralize}", :action => :show, :version => @feature.version }, :class => "icon-link") do %>
24       <%= "#{t('browse.version')} ##{@feature.version}" %>
25       <%= next_page_svg_tag :height => 11, :count => 2 %>
26     <% end %>
27   <% end %>
28 </div>