_info.html.haml revision 3a976e419d5306aef3a2ae39e74f9729a729d3ca
%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'
= '/'
= link_to resource.logic.to_s, resource.logic
- if resource.state != 'done'
%small#ontology-state{ class: resource.state, 'data-uri' => url_for(resource) }
= status resource
= render partial: '/ontologies/menu', locals: {resource: resource}
%p= link_to resource.iri, download_path(resource) if download_path(resource)
= render partial: '/ontologies/oops_state', locals: {resource: resource}
%nav
- @entities.each do |entity|
%li{:class => (entity.kind == @active_kind ? 'active' : nil)}
%a{:href => ontology_entities_path(resource, :kind => entity.kind)}
- pages.each do |page, path, count|
%li{:class => (page==current_page ? 'active' : nil)}
%a{:href => url_for(path)}
- if count # hide counter if empty
%span.badge{:style => count==0 && 'display:none'}= count