Sha256: 3c1ed9bd5ece54e96585f94899623ce063b4a2a1f70c3d81b9cb0d00ba1565bb

Contents?: true

Size: 1.93 KB

Versions: 2

Compression:

Stored size: 1.93 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,
      :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,
      :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 %>

  <% if @loose_concepts.try(:any?) %>
    <%= sidebar_header t('txt.views.navigation.loose_concepts') %>
    <div class="box">
      <%= treeview @loose_concepts %>
      <%= paginate @loose_concepts %>
    </div>
  <% end %>

<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

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