%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
.pull-right
- if resource.is_destroying?
= modal_button(t('repository.undelete.button'), btn_class: 'btn-primary')
= repository_undelete_modal_body
- elsif resource.can_be_deleted?
= modal_button(t('repository.delete'), btn_class: 'btn-danger')
= repository_modal_body
- else
.btn.btn-danger.has-tooltip{disabled: true, data: {toggle: 'tooltip', :'original-title' => t('repository.delete_error'), container: 'body'}}
%span.allow-tooltips
= t('repository.delete')
%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