_subnav.html.haml revision beee8758c15ffe2c52ee4171ccbfc5ecee2c8534
- if can? :edit, ontology
%li= link_to 'Edit', [:edit, ontology]
%li= link_to 'Delete', ontology, :confirm => 'Really delete?', :method => :delete
%h2= link_to ontology, ontology
%ul{:class => 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all'}
- pages.each do |page, path|
%li{:class => 'ui-state-default ui-corner-top' << (page==current_page ? ' ui-tabs-selected ui-state-active' : '')}
= link_to page.to_s.capitalize, path