_subnavigation.html.haml revision 41292ec9bfaafec2c0592a3ac0092e4c412ee7e8
- if can? :edit, resource and not options[:disable_actions]
- additional_actions.each do |action_link|
= action_link
= link_to 'Edit', [:edit, resource], class: 'btn btn-default'
= link_to 'Delete', resource, confirm: 'Really delete?', method: :delete, class: 'btn btn-default'
%h1
= fancy_link resource
%nav
- pages.each do |page, path, count|
%li{class: (page == current_page ? 'active' : nil)}
= link_to url_for(path) do
- if count
%span.badge{style: count == 0 && 'display: none'}= count
- unless params[:ontology_id]