Sha256: 935859d2da03eeb267d7f224872f685942f822fe76428205a3932018b0495b79
Contents?: true
Size: 1.4 KB
Versions: 6
Compression:
Stored size: 1.4 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' %> <%= sidebar_item :text => t("txt.views.navigation.alphabetical"), :icon => 'list-alt', :path => alphabetical_concepts_path(:prefix => 'a'), :active => params[:controller] == 'concepts/alphabetical' %> <%= 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
6 entries across 6 versions & 1 rubygems