Sha256: 20f8f27bcc12b726f2121b6bcdedd726c041af59cd9e171d4d2f2d68b2de0deb

Contents?: true

Size: 1.19 KB

Versions: 4

Compression:

Stored size: 1.19 KB

Contents

<%= sidebar do %>
  <% if defined?(collection) %>
    <%= sidebar_header t('txt.common.representations') %>
    <%= sidebar_item :icon => 'share', :text => 'HTML', :path => collection_url(collection.origin, :format => :html) %>
    <%= sidebar_item :icon => 'share', :text => 'RDF/XML', :path => rdf_url(collection.origin, :format => :rdf, :lang => nil), :id => 'rdf_link_xml' %>
    <%= sidebar_item :icon => 'share', :text => 'RDF/Turtle', :path => rdf_url(collection.origin, :format => :ttl, :lang => nil), :id => 'rdf_link_ttl' %>
    <%= sidebar_item :icon => 'share', :text => 'RDF/NTriples', :path => rdf_url(collection.origin, :format => :nt, :lang => nil), :id => 'rdf_link_nt' %>
  <% end %>
<% end %>

<%= sidebar do %>
  <% if defined?(collection) || can?(:create, Iqvoc::Collection.base_class) %>
    <%= sidebar_header 'Links' %>
  <% end %>
  <% if defined?(collection) %>
    <%= sidebar_item :icon => 'link', :text => t('txt.models.collection.uri'), :path => rdf_url(collection.origin, :format => nil, :lang => nil) %>
  <% end %>
  <%= sidebar_item :icon => :edit, :text => t("txt.views.collections.new"), :path => new_collection_path,
    :perms => [:create, Iqvoc::Collection.base_class] %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iqvoc-4.14.5 app/views/collections/_sidebar.html.erb
iqvoc-4.14.4 app/views/collections/_sidebar.html.erb
iqvoc-4.13.2 app/views/collections/_sidebar.html.erb
iqvoc-4.13.0 app/views/collections/_sidebar.html.erb