Skip to content

Commit

Permalink
Menu Simplification: extract the configuration into the top-right
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Apr 11, 2019
1 parent eae6a67 commit 855ab91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/presenters/menu/default_menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ def monitor_menu_section
def settings_menu_section
Menu::Section.new(:set, N_("Settings"), 'pficon pficon-settings', [
Menu::Item.new('configuration', N_('My Settings'), 'my_settings', {:feature => 'my_settings', :any => true}, '/configuration/index'),
Menu::Item.new('my_tasks', N_('Tasks'), 'tasks', {:feature => 'tasks', :any => true}, '/miq_task/index?jobs_tab=tasks'),
Menu::Item.new('ops', N_('Configuration'), 'ops_explorer', {:feature => 'ops_explorer', :any => true}, '/ops/explorer')
Menu::Item.new('my_tasks', N_('Tasks'), 'tasks', {:feature => 'tasks', :any => true}, '/miq_task/index?jobs_tab=tasks')
], :top_right)
end

Expand Down
4 changes: 4 additions & 0 deletions app/views/layouts/_user_options.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
- if current_user
- if ApplicationHelper.role_allows?(:feature => 'ops_explorer', :any => true)
%li.dropdown
%a.nav-item-iconic{:href => '/ops/explorer', :title => _('Configuration')}
%i.fa.fa-cog
%li.dropdown
%a{:href => "#", :class => "dropdown-toggle nav-item-iconic", :id => "dropdownMenu2", "data-toggle" => "dropdown", "aria-haspopup" => "true"}
%span.pficon.pficon-user
Expand Down

0 comments on commit 855ab91

Please sign in to comment.