]> git.openstreetmap.org Git - rails.git/blob - app/views/old_elements/_actions.html.erb
Fix eslint warning
[rails.git] / app / views / old_elements / _actions.html.erb
1 <div class='secondary-actions mb-3'>
2   <% if !@feature.redacted? %>
3     <%= link_to t("browse.download_xml"), send(:"api_#{@type}_version_path", *@feature.id) %>
4   <% elsif current_user&.moderator? %>
5     <% if !params[:show_redactions] %>
6       <%= link_to t(".view_redacted_data"), :params => { :show_redactions => true } %>
7     <% else %>
8       <%= link_to t(".view_redaction_message") %>
9     <% end %>
10   <% end %>
11 </div>
12
13 <nav>
14   <ol class="breadcrumb mb-1">
15     <li class="breadcrumb-item">
16       <%= link_to t(@type, :scope => "browse.versions_navigation"), @current_feature %>
17     </li>
18     <li class="breadcrumb-item">
19       <%= link_to t("browse.versions_navigation.history"), :action => :index %>
20     </li>
21     <li class="breadcrumb-item active" aria-current="page">
22       <a href="#versions-navigation-active-page-item" class="py-1 px-2 rounded bg-body-secondary link-body-emphasis">
23         <%= t "browse.versions_navigation.version", :version => @feature.version %>
24       </a>
25     </li>
26   </ol>
27
28   <%= element_versions_pagination(@current_feature.version, :active_version => @feature.version) do |v|
29         { :href => { :version => v },
30           :title => t("browse.versions_navigation.version", :version => v) }
31       end %>
32 </nav>