summaryrefslogtreecommitdiff
path: root/app/views/layouts/nav/_dashboard.html.haml
blob: a0356feef95b401d103301660c0767e6dea8e45a (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
34
35
36
37
38
.nav-sidebar
  .sidebar-header Across GitLab
  %ul.nav
    = nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: "#{project_tab_class} home"}) do
      = link_to dashboard_projects_path, title: 'Projects', class: 'dashboard-shortcuts-projects' do
        %span
          Projects
    = nav_link(path: 'dashboard#activity') do
      = link_to activity_dashboard_path, class: 'dashboard-shortcuts-activity', title: 'Activity' do
        %span
          Activity
    - if koding_enabled?
      = nav_link(controller: :koding) do
        = link_to koding_path, title: 'Koding' do
          %span
            Koding
    = nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do
      = link_to dashboard_groups_path, title: 'Groups' do
        %span
          Groups
    = nav_link(controller: 'dashboard/milestones') do
      = link_to dashboard_milestones_path, title: 'Milestones' do
        %span
          Milestones
    = nav_link(path: 'dashboard#issues') do
      = link_to assigned_issues_dashboard_path, title: 'Issues', class: 'dashboard-shortcuts-issues' do
        %span
          Issues
          %span.count= number_with_delimiter(current_user.assigned_issues.opened.count)
    = nav_link(path: 'dashboard#merge_requests') do
      = link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'dashboard-shortcuts-merge_requests' do
        %span
          Merge Requests
          %span.count= number_with_delimiter(current_user.assigned_merge_requests.opened.count)
    = nav_link(controller: 'dashboard/snippets') do
      = link_to dashboard_snippets_path, title: 'Snippets' do
        %span
          Snippets