_info.html.haml revision 184bb45b6cb62422583b634cc27d04fc2ba0e0f6
= render partial: '/ontologies/menu', locals: {resource: resource}
%h1#ontology_title
= ontology_link_to resource
%small
- if resource.logic
= link_to resource.logic.to_s, resource.logic
- elsif resource.distributed?
DOL
%small
Defined
- if resource.parent
by
%span= fancy_link(resource.parent)
in the files
%ul
- files.each do |f|
%li= fancy_link repository_tree_path(resource.repository, f)
%p= link_to resource.iri, download_path(resource) if download_path(resource)
- if resource.oops_supported?
= render partial: '/ontologies/oops_state', locals: {resource: resource}
= status_tag
- @top_level_pages.each do |(page_title, page)|
%li{class: page==current_page ? 'active' : nil}
= link_to page_title, [*resource_chain, page]
- if %w[entities sentences children].include? controller_name
- @entities.each do |entity|
%li{:class => (entity.kind == @active_kind ? 'active' : nil)}
= link_to repository_ontology_entities_path(*resource_chain, kind: entity.kind) do
- pages.each do |page, path, count|
%li{:class => (page==current_page ? 'active' : nil)}
= link_to path do
- if count # hide counter if empty
%span.badge{:style => count==0 && 'display:none'}= count