Sha256: 2cf19df40c40f888bcb3597aef72c0915254da48982036354250e183dfc93c57

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

<%- published_param = concept.published? ? nil : "0" if defined?(concept) -%>

<%= sidebar do %>
  <% if defined?(concept) %>
    <%= sidebar_header t('txt.common.representations') %>
    <%= sidebar_item :icon => 'link', :text => 'HTML', :path => concept_path(:id => concept, :format => :html, :published => published_param) %>
    <%= sidebar_item :icon => 'link', :text => 'RDF/XML', :path => concept_path(:id => concept, :format => :rdf, :published => published_param), :id => 'rdf_link_xml' %>
    <%= sidebar_item :icon => 'link', :text => 'RDF/Turtle', :path => concept_path(:id => concept, :format => :ttl, :published => published_param), :id => 'rdf_link_ttl' %>
    <%= sidebar_item :icon => 'link', :text => 'RDF/NTriples', :path => concept_path(:id => concept, :format => :nt, :published => published_param), :id => 'rdf_link_nt' %>
  <% end %>
  <%= sidebar_header 'Links' if can?(:create, Iqvoc::Concept.base_class) %>
  <% if defined?(concept) %>
    <%= sidebar_item :icon => 'link', :text => t('txt.models.concept.uri'), :path => rdf_url(concept.origin, :format => nil, :published => published_param, :lang => nil) %>
  <% end %>
  <%= sidebar_item :icon => :edit, :text => t('txt.views.concepts.new', :concept_class_name => Iqvoc::Concept.base_class.model_name.human), :path => new_concept_path,
    :perms => [:create, Iqvoc::Concept.base_class], :active => params[:action] == 'new' %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iqvoc-4.12.1 app/views/concepts/sidebars/_singular.html.erb