Skip to content

Commit

Permalink
Move sidebar option
Browse files Browse the repository at this point in the history
It was conflicting with Bulkrax.
  • Loading branch information
laritakr committed Jul 3, 2024
1 parent 377c62e commit ef0f5ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions app/views/hyrax/dashboard/sidebar/_configuration.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,16 @@
<% end %>
<% end %>
<% if ENV.fetch('HYRAX_FLEXIBLE', false) %>
<% if current_ability.admin? %>
<%= menu.nav_link(hyrax.metadata_profiles_path,
class: "nav-link",
onclick: "dontChangeAccordion(event);",
title: t('hyrax.admin.sidebar.metadata_profiles')) do %>
<span class="fa fa-table" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.metadata_profiles') %></span>
<% end %>
<% end %>
<% end %>
<%= render 'hyrax/dashboard/sidebar/menu_partials', menu: menu, section: :configuration %>
<% end %>
11 changes: 0 additions & 11 deletions app/views/hyrax/dashboard/sidebar/_repository_content.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,4 @@
<span class="fa fa-file" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.works') %></span>
<% end %>
<% if ENV.fetch('HYRAX_FLEXIBLE', false) %>
<% if current_ability.admin? %>
<%= menu.nav_link(hyrax.metadata_profiles_path,
class: "nav-link",
onclick: "dontChangeAccordion(event);",
title: t('hyrax.admin.sidebar.metadata_profiles')) do %>
<span class="fa fa-table" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.metadata_profiles') %></span>
<% end %>
<% end %>
<% end %>
<%= render 'hyrax/dashboard/sidebar/menu_partials', menu: menu, section: :repository_content %>

0 comments on commit ef0f5ec

Please sign in to comment.