_subnav.html.haml revision 624c1b9b411c43e292743f367353cf0740d5613c
%div{class: resource.class.name.downcase}
- if can? :edit, resource and not options[:disable_actions]
.btn-group.pull-right
- 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'
%nav
%ul.nav.nav-tabs
- pages.each do |page, path, count|
%li{class: (page == current_page ? 'active' : nil)}
= link_to url_for(path) do
= page.to_s.capitalize
- if count
%span.badge{style: count == 0 && 'display: none'}= count
- unless params[:ontology_id]
%h2= current_page.to_s.capitalize