_new_dashboard.html.haml 2.8 KB
Newer Older
P
Phil Hughes 已提交
1
%ul.list-unstyled.navbar-sub-nav
2
  = nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: { id: 'nav-projects-dropdown', class: "home dropdown" }) do
A
Annabel Dunstone Gray 已提交
3
    %a{ href: "#", data: { toggle: "dropdown" } }
P
Phil Hughes 已提交
4
      Projects
A
Annabel Dunstone Gray 已提交
5
      = custom_icon('caret_down')
6 7
    .dropdown-menu.projects-dropdown-menu
      = render "layouts/nav/projects_dropdown/show"
P
Phil Hughes 已提交
8

A
Annabel Dunstone Gray 已提交
9
  = nav_link(controller: ['dashboard/groups', 'explore/groups'], html_options: { class: "hidden-xs" }) do
P
Phil Hughes 已提交
10 11 12
    = link_to dashboard_groups_path, class: 'dashboard-shortcuts-groups', title: 'Groups' do
      Groups

A
Annabel Dunstone Gray 已提交
13
  = nav_link(path: 'dashboard#activity', html_options: { class: "visible-lg" }) do
P
Phil Hughes 已提交
14 15 16
    = link_to activity_dashboard_path, class: 'dashboard-shortcuts-activity', title: 'Activity' do
      Activity

A
Annabel Dunstone Gray 已提交
17 18 19 20 21 22 23 24 25
  = nav_link(controller: 'dashboard/milestones', html_options: { class: "visible-lg" }) do
    = link_to dashboard_milestones_path, class: 'dashboard-shortcuts-milestones', title: 'Milestones' do
      Milestones

  = nav_link(controller: 'dashboard/snippets', html_options: { class: "visible-lg" }) do
    = link_to dashboard_snippets_path, class: 'dashboard-shortcuts-snippets', title: 'Snippets' do
      Snippets

  %li.dropdown.hidden-lg
P
Phil Hughes 已提交
26 27
    %a{ href: "#", data: { toggle: "dropdown" } }
      More
A
Annabel Dunstone Gray 已提交
28
      = custom_icon('caret_down')
P
Phil Hughes 已提交
29 30
    .dropdown-menu
      %ul
A
Annabel Dunstone Gray 已提交
31 32 33 34 35
        = nav_link(controller: ['dashboard/groups', 'explore/groups'], html_options: { class: "visible-xs" }) do
          = link_to dashboard_groups_path, class: 'dashboard-shortcuts-groups', title: 'Groups' do
            Groups

        = nav_link(path: 'dashboard#activity') do
P
Phil Hughes 已提交
36 37 38 39 40 41 42 43 44 45
          = 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
46 47 48 49 50

  -# Shortcut to Dashboard > Projects
  %li.hidden
    = link_to dashboard_projects_path, title: 'Projects', class: 'dashboard-shortcuts-projects' do
      Projects
A
Annabel Dunstone Gray 已提交
51 52 53 54 55 56 57 58 59 60 61 62

  - if current_user.admin? || Gitlab::Sherlock.enabled?
    %li.line-separator.hidden-xs
  - if current_user.admin?
    = nav_link(controller: 'admin/dashboard') do
      = link_to admin_root_path, class: 'admin-icon', title: 'Admin area', aria: { label: "Admin area" }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
        = icon('wrench fw')
  - if Gitlab::Sherlock.enabled?
    %li
      = link_to sherlock_transactions_path, class: 'admin-icon', title: 'Sherlock Transactions',
        data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do
        = icon('tachometer fw')