Sha256: 5bdbcdc89a88cb33d8dfac7dd26a98f01468da382a7ebbec14fc57b091a386b5

Contents?: true

Size: 1.74 KB

Versions: 9

Compression:

Stored size: 1.74 KB

Contents

<%= sidebar do %>
  <%= sidebar_header t('txt.views.navigation.sections') %>
  <%= sidebar_item :text => t("txt.views.navigation.hierarchical"),
      :icon => 'list-alt',
      :path => hierarchical_concepts_path,
      :active => params[:controller] == 'concepts/hierarchical' && params[:published] != '0' %>
  <%= sidebar_item :text => t("txt.views.navigation.alphabetical"),
      :icon => 'list-alt',
      :path => alphabetical_concepts_path(:prefix => 'a'),
      :active => (params[:controller] == 'concepts/alphabetical') %>
  <% if can?(:update, Iqvoc::Concept.base_class) %>
    <%= sidebar_item :text => t("txt.views.navigation.draft"),
        :icon => 'list-alt',
        :path => hierarchical_concepts_path(published: 0),
        :active => (params[:controller] == 'concepts/hierarchical' && params[:published] == '0') %>
  <% end %>
  <%= sidebar_item :text => t("txt.views.navigation.expired"),
      :icon => 'list-alt',
      :path => expired_concepts_path(:prefix => 'a'),
      :active => params[:controller] == 'concepts/expired' %>
  <% if I18n.locale.to_s != Iqvoc::Concept.pref_labeling_languages.first %>
    <%= sidebar_item :icon => 'list-alt',
      :text => t("txt.views.untranslated_concepts.caption"),
      :path => untranslated_concepts_path(:prefix => params[:prefix] || 'a'),
      :active => params[:controller] == 'concepts/untranslated',
      :id => 'untranslated' %>
  <% end %>
  <% if can?(:create, Iqvoc::Concept.base_class) %>
    <%= sidebar_header 'Links'%>
    <%= 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 %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iqvoc-4.8.2 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.8.1 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.8.0 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.7.0 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.6.1 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.5.2 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.6.0 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.5.1 app/views/concepts/sidebars/_plural.html.erb
iqvoc-4.5.0 app/views/concepts/sidebars/_plural.html.erb