_info.html.haml revision 84aa76c3d674a5ca4cc635d7ec8d98bd44745fdd
= render partial: '/ontologies/menu', locals: {resource: resource}
%br
%h2{'style' => 'display: inline-block'}
%span= resource.class.name
%span= link_to resource
%small
-if !resource.language_id.nil?
= link_to resource.language, resource.language
- else
= 'unknown'
- if resource.logic
= '/'
= link_to resource.logic.to_s, resource.logic
%p= link_to resource.iri, download_path(resource) if download_path(resource)
%p= resource.description
- if resource.oops_supported?
= render partial: '/ontologies/oops_state', locals: {resource: resource}
= status_tag
%nav
%ul.nav.nav-tabs
- @top_level_pages.each do |(page_title, page)|
%li{class: page==current_page ? 'active' : nil}
= link_to page_title, [resource, page]
- if controller_name == "entities" || controller_name == "sentences" || controller_name == "children"
%nav
%ul.nav.nav-tabs
- @entities.each do |entity|
%li{:class => (entity.kind == @active_kind ? 'active' : nil)}
%a{:href => ontology_entities_path(resource, :kind => entity.kind)}
= entity.count == 1 ? entity.kind : entity.kind.pluralize
%span.badge{:style => entity.count == 0 && 'display:none'}= entity.count
- pages.each do |page, path, count|
%li{:class => (page==current_page ? 'active' : nil)}
%a{:href => url_for(path)}
= page.to_s.capitalize
- if count # hide counter if empty
%span.badge{:style => count==0 && 'display:none'}= count
- if controller_name == "metadata"
%nav
%ul.nav.nav-tabs
- @metadatas.each do |(page_title, page)|
%li{class: page==current_page ? 'active' : nil}
= link_to page_title, "#"