summaryrefslogtreecommitdiff
path: root/app/views/layouts/nav/_new_dashboard.html.haml
blob: 7109baa4dad17b102c81450acd1779f15360044a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%ul.list-unstyled.navbar-sub-nav
  = nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: "home"}) do
    = link_to dashboard_projects_path, title: 'Projects', class: 'dashboard-shortcuts-projects' do
      Projects

  = nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do
    = link_to dashboard_groups_path, class: 'dashboard-shortcuts-groups', title: 'Groups' do
      Groups

  = nav_link(path: 'dashboard#activity', html_options: { class: "hidden-xs hidden-sm" }) do
    = link_to activity_dashboard_path, class: 'dashboard-shortcuts-activity', title: 'Activity' do
      Activity

  %li.dropdown
    %a{ href: "#", data: { toggle: "dropdown" } }
      More
      = icon("chevron-down", class: "dropdown-chevron")
    .dropdown-menu
      %ul
        = nav_link(path: 'dashboard#activity', html_options: { class: "visible-xs visible-sm" }) do
          = link_to activity_dashboard_path, title: 'Activity' do
            Activity

        = nav_link(controller: 'dashboard/milestones') do
          = link_to dashboard_milestones_path, class: 'dashboard-shortcuts-milestones', title: 'Milestones' do
            Milestones

        = 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'