Skip to content

Commit

Permalink
Fix bug in configuration menu
Browse files Browse the repository at this point in the history
  • Loading branch information
LaRita Robinson committed Jul 3, 2024
1 parent 98be47c commit 9834baa
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions app/views/hyrax/dashboard/sidebar/_configuration.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<% end %>
<% end %>
<% if can?(:manage, Hyrax::Feature) %>
<%= menu.nav_link(hyrax.edit_pages_path, class: "nav-link", title: t('hyrax.admin.sidebar.pages')) do %>
<%= menu.nav_link(hyrax.edit_pages_path, class: "nav-link", title: t('hyrax.admin.sidebar.pages')) do %>
<span class="fa fa-file-text-o" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.pages') %></span>
<% end %>
<%= menu.nav_link(hyrax.edit_content_blocks_path, class: "nav-link", title: t('hyrax.admin.sidebar.content_blocks')) do %>
Expand All @@ -43,20 +43,21 @@
<span class="fa fa-address-book"></span> <span class="sidebar-action-text"><%= t('hyku.admin.work_types') %></span>
<% end %>
<% end %>
<% end %>
</li>
<% end %>

<% if Flipflop.show_workflow_roles_menu_item_in_admin_dashboard_sidebar? && can?(:manage, Sipity::WorkflowResponsibility) %>
<%= menu.nav_link(hyrax.admin_workflow_roles_path, class: "nav-link", title: t('hyrax.admin.sidebar.workflow_roles')) do %>
<span class="fa fa-users" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_roles') %></span>
<% end %>
<% end %>
<% if Flipflop.show_workflow_roles_menu_item_in_admin_dashboard_sidebar? && can?(:manage, Sipity::WorkflowResponsibility) %>
<%= menu.nav_link(hyrax.admin_workflow_roles_path, class: "nav-link", title: t('hyrax.admin.sidebar.workflow_roles')) do %>
<span class="fa fa-users" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.workflow_roles') %></span>
<% end %>
<% end %>

<% if can?(:update, RolesService) %>
<%= menu.nav_link(main_app.admin_roles_service_jobs_path, class: "nav-link", title: t('hyrax.admin.sidebar.roles_service_jobs')) do %>
<span class="fa fa-users" aria-hidden="true"></span> <span class="sidebar-action-text"><%= t('hyrax.admin.sidebar.roles_service_jobs') %></span>
<% end %>
<% end %>
<% end %>
<% end %>
</li>
<% end %>

<%= render 'hyrax/dashboard/sidebar/menu_partials', menu: menu, section: :configuration %>
<% end %>

0 comments on commit 9834baa

Please sign in to comment.