added signed out subnav
also added the help link back into the nav bar
This commit is contained in:
parent
9e6113a293
commit
4c01a68fc7
3 changed files with 24 additions and 0 deletions
|
@ -13,6 +13,8 @@
|
|||
|
||||
- if current_user
|
||||
= render "layouts/nav/new_dashboard"
|
||||
- else
|
||||
= render "layouts/nav/new_explore"
|
||||
|
||||
%button.navbar-toggle.navbar-toggle-left.hide.hidden-sm.hidden-md.hidden-lg.js-navbar-toggle-left{ type: 'button' }
|
||||
%span.sr-only Toggle navigation
|
||||
|
|
|
@ -28,3 +28,6 @@
|
|||
= nav_link(controller: 'dashboard/snippets') do
|
||||
= link_to dashboard_snippets_path, class: 'dashboard-shortcuts-snippets', title: 'Snippets' do
|
||||
Snippets
|
||||
%li.divider
|
||||
%li
|
||||
= link_to "Help", help_path, title: 'About GitLab CE'
|
||||
|
|
19
app/views/layouts/nav/_new_explore.html.haml
Normal file
19
app/views/layouts/nav/_new_explore.html.haml
Normal file
|
@ -0,0 +1,19 @@
|
|||
%ul.list-unstyled.navbar-sub-nav
|
||||
= 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', class: 'dashboard-shortcuts-projects' do
|
||||
Projects
|
||||
= nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do
|
||||
= link_to explore_groups_path, title: 'Groups', class: 'dashboard-shortcuts-groups' do
|
||||
Groups
|
||||
%li.dropdown
|
||||
%a{ href: "#", data: { toggle: "dropdown" } }
|
||||
More
|
||||
= icon("chevron-down", class: "dropdown-chevron")
|
||||
.dropdown-menu
|
||||
%ul
|
||||
= nav_link(controller: :snippets) do
|
||||
= link_to explore_snippets_path, title: 'Snippets', class: 'dashboard-shortcuts-snippets' do
|
||||
Snippets
|
||||
%li.divider
|
||||
%li
|
||||
= link_to "Help", help_path, title: 'About GitLab CE'
|
Loading…
Reference in a new issue