Skip to content

Commit

Permalink
Reorder Browse menu
Browse files Browse the repository at this point in the history
  • Loading branch information
somathias committed Sep 25, 2023
1 parent f4d7f8d commit d46c6b8
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/views/layouts/navbar/_browse_menu.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,41 @@
</a>
<ul class="dropdown-menu" role="menu">
<li role="presentation" class="dropdown-header visible-md">Browse</li>
<%= render_menu_group(t('menu.yellow_pages'), [
[t('programme').pluralize, programmes_path, Seek::Config.programmes_enabled],
[t('project').pluralize, projects_path, true],
[t('institution').pluralize, institutions_path, true],
[t('person').pluralize, people_path, true]
]) %>

<%= render_menu_group(t('menu.isa'), [
[t('template').pluralize, templates_path, Seek::Config.sample_type_template_enabled],
[t('sop').pluralize, sops_path, Seek::Config.sops_enabled],
[t('investigation').pluralize, investigations_path, Seek::Config.investigations_enabled],
[t('study').pluralize, studies_path, Seek::Config.studies_enabled],
[t('assay').pluralize, assays_path, Seek::Config.assays_enabled],
[t('sample').pluralize, samples_path, Seek::Config.samples_enabled],
]) %>
<%= render_menu_group(t('menu.assets'), [
[t('data_file').pluralize, data_files_path, Seek::Config.data_files_enabled],
[t('model').pluralize, models_path, Seek::Config.models_enabled],
[t('sop').pluralize, sops_path, Seek::Config.sops_enabled],
[t('workflow').pluralize, workflows_path, Seek::Config.workflows_enabled],
[t('publication').pluralize, publications_path, Seek::Config.publications_enabled],
[t('document').pluralize, documents_path, Seek::Config.documents_enabled],
[t('file_template').pluralize, file_templates_path, Seek::Config.file_templates_enabled],
[t('placeholder').pluralize, placeholders_path, Seek::Config.placeholders_enabled],
[t('collection').pluralize, collections_path, Seek::Config.collections_enabled]
]) %>
<%= render_menu_group(t('menu.yellow_pages'), [
[t('project').pluralize, projects_path, true],
[t('programme').pluralize, programmes_path, Seek::Config.programmes_enabled],
[t('institution').pluralize, institutions_path, true],
[t('person').pluralize, people_path, true]
]) %>
<%= render_menu_group(t('menu.activities'), [
[t('presentation').pluralize, presentations_path, Seek::Config.presentations_enabled],
[t('event').pluralize, events_path, Seek::Config.events_enabled],
]) %>
<%= render_menu_group(t('menu.samples'), [
[t('sample').pluralize, samples_path, Seek::Config.samples_enabled],
[t('template').pluralize, templates_path, Seek::Config.sample_type_template_enabled],
[t('sample_type').pluralize, sample_types_path, Seek::Config.samples_enabled],
#[t('sample_type').pluralize, sample_types_path, Seek::Config.samples_enabled],
[t('strain').pluralize, strains_path, Seek::Config.organisms_enabled],
[t('organism').pluralize, organisms_path, Seek::Config.organisms_enabled],
]) %>
Expand Down

0 comments on commit d46c6b8

Please sign in to comment.