_info.html.haml revision 34d557f2f70cb1455816b383a3cc01e4bcec7146
= 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
%p
Ontology Type:
= fancy_link resource.ontology_type
%small
Ontology defined
- if resource.parent
by
%span= fancy_link(resource.parent)
in the file
= fancy_link repository_tree_path(resource.repository, resource.path)
See for detailed documentation
= link_to resource.documentation, resource.documentation
%p= link_to resource.iri, download_path(resource) if download_path(resource)
- if resource.oops_supported?
= render partial: '/ontologies/oops_state', locals: {resource: resource}
- if resource.non_current_active_version?(current_user)
= render partial: '/ontologies/status'
- @top_level_pages.each do |(page_title, page)|
%li{class: page==current_page || in_subcontroller?(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
- if in_metadata?
- @metadatas.each do |(page_title, page)|
%li{class: page[-1]==current_page ? 'active' : nil}
= link_to page_title, page