BigW Consortium Gitlab

_dashboard.html.haml 2.47 KB
Newer Older
1
%ul
2
  = nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: "#{project_tab_class} home"}) do
3 4
    = link_to dashboard_projects_path, title: 'Projects', class: 'dashboard-shortcuts-projects' do
      .shortcut-mappings
Phil Hughes committed
5 6 7
        .key
          = icon('arrow-up', 'aria-label' => 'hidden')
          P
8 9
      %span
        Projects
10
  = nav_link(path: 'dashboard#activity') do
11 12
    = link_to activity_dashboard_path, class: 'dashboard-shortcuts-activity', title: 'Activity' do
      .shortcut-mappings
Phil Hughes committed
13 14 15
        .key
          = icon('arrow-up', 'aria-label' => 'hidden')
          A
16 17
      %span
        Activity
18 19 20
  - if koding_enabled?
    = nav_link(controller: :koding) do
      = link_to koding_path, title: 'Koding' do
21
        %span
22 23
          Koding
  = nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do
24 25
    = link_to dashboard_groups_path, class: 'dashboard-shortcuts-groups', title: 'Groups' do
      .shortcut-mappings
Phil Hughes committed
26 27 28
        .key
          = icon('arrow-up', 'aria-label' => 'hidden')
          G
29 30
      %span
        Groups
31
  = nav_link(controller: 'dashboard/milestones') do
32 33
    = link_to dashboard_milestones_path, class: 'dashboard-shortcuts-milestones', title: 'Milestones' do
      .shortcut-mappings
Phil Hughes committed
34 35 36
        .key
          = icon('arrow-up', 'aria-label' => 'hidden')
          L
37 38
      %span
        Milestones
39
  = nav_link(path: 'dashboard#issues') do
40 41
    = link_to assigned_issues_dashboard_path, title: 'Issues', class: 'dashboard-shortcuts-issues' do
      .shortcut-mappings
Phil Hughes committed
42 43 44
        .key
          = icon('arrow-up', 'aria-label' => 'hidden')
          I
45
      %span
46
        Issues
47
      .badge= number_with_delimiter(assigned_issuables_count(:issues))
48
  = nav_link(path: 'dashboard#merge_requests') do
49 50
    = link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'dashboard-shortcuts-merge_requests' do
      .shortcut-mappings
Phil Hughes committed
51 52 53
        .key
          = icon('arrow-up', 'aria-label' => 'hidden')
          M
54 55
      %span
        Merge Requests
56
      .badge= number_with_delimiter(assigned_issuables_count(:merge_requests))
57
  = nav_link(controller: 'dashboard/snippets') do
58 59
    = link_to dashboard_snippets_path, class: 'dashboard-shortcuts-snippets', title: 'Snippets' do
      .shortcut-mappings
Phil Hughes committed
60 61 62
        .key
          = icon('arrow-up', 'aria-label' => 'hidden')
          S
63 64
      %span
        Snippets
65 66
  %li.divider
  %li
67
    = link_to "Help", help_path, title: 'About GitLab CE', class: 'about-gitlab'