diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-07 09:46:31 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-10 12:20:25 +0100 |
commit | 195c058c1191fa4058176f511f1b6c52d0d7031f (patch) | |
tree | beb610290ee6c2326f4067fbfbd9957bbbdec382 /app | |
parent | ce6a48cbd0b297bf955206f6acb1da86c1fa4529 (diff) | |
download | gitlab-ce-195c058c1191fa4058176f511f1b6c52d0d7031f.tar.gz |
Added keyboard shortcuts to signed out menusigned-out-menu-shortcuts
Diffstat (limited to 'app')
-rw-r--r-- | app/views/layouts/nav/_explore.html.haml | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/app/views/layouts/nav/_explore.html.haml b/app/views/layouts/nav/_explore.html.haml index 3a1fcd00e9c..0cb367452f7 100644 --- a/app/views/layouts/nav/_explore.html.haml +++ b/app/views/layouts/nav/_explore.html.haml @@ -1,16 +1,29 @@ %ul = nav_link(path: ['dashboard#show', 'root#show', 'projects#trending', 'projects#starred', 'projects#index'], html_options: {class: 'home'}) do - = link_to explore_root_path, title: 'Projects' do + = link_to explore_root_path, title: 'Projects', class: 'dashboard-shortcuts-projects' do + .shortcut-mappings + .key + = icon('arrow-up', 'aria-label' => 'hidden') + P %span Projects = nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do - = link_to explore_groups_path, title: 'Groups' do + = link_to explore_groups_path, title: 'Groups', class: 'dashboard-shortcuts-groups' do + .shortcut-mappings + .key + = icon('arrow-up', 'aria-label' => 'hidden') + G %span Groups = nav_link(controller: :snippets) do - = link_to explore_snippets_path, title: 'Snippets' do + = link_to explore_snippets_path, title: 'Snippets', class: 'dashboard-shortcuts-snippets' do + .shortcut-mappings + .key + = icon('arrow-up', 'aria-label' => 'hidden') + S %span Snippets + %li.divider = nav_link(controller: :help) do = link_to help_path, title: 'Help' do %span |