BigW Consortium Gitlab

_dashboard.html.haml 2.04 KB
Newer Older
1
%ul.nav.nav-sidebar
2
  = nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: "#{project_tab_class} home"}) do
3
    = link_to dashboard_projects_path, title: 'Projects', class: 'dashboard-shortcuts-projects' do
4
      %span
5
        Projects
6 7
  = nav_link(controller: :todos) do
    = link_to dashboard_todos_path, title: 'Todos' do
8
      %span
9
        Todos
10
        %span.count= number_with_delimiter(todos_pending_count)
11
  = nav_link(path: 'dashboard#activity') do
12
    = link_to activity_dashboard_path, class: 'dashboard-shortcuts-activity', title: 'Activity' do
13
      %span
14
        Activity
15 16 17 18 19
  - if koding_enabled?
    = nav_link(controller: :koding) do
      = link_to koding_path, title: 'Koding' do
        %span
          Koding
20 21
  = nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do
    = link_to dashboard_groups_path, title: 'Groups' do
22
      %span
23 24 25
        Groups
  = nav_link(controller: 'dashboard/milestones') do
    = link_to dashboard_milestones_path, title: 'Milestones' do
26
      %span
27 28 29
        Milestones
  = nav_link(path: 'dashboard#issues') do
    = link_to assigned_issues_dashboard_path, title: 'Issues', class: 'dashboard-shortcuts-issues' do
30
      %span
31
        Issues
32
        %span.count= number_with_delimiter(current_user.assigned_issues.opened.count)
33
  = nav_link(path: 'dashboard#merge_requests') do
34
    = link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'dashboard-shortcuts-merge_requests' do
35
      %span
36
        Merge Requests
37
        %span.count= number_with_delimiter(current_user.assigned_merge_requests.opened.count)
38
  = nav_link(controller: 'dashboard/snippets') do
39
    = link_to dashboard_snippets_path, title: 'Snippets' do
40
      %span
41
        Snippets
42
  = nav_link(controller: :help) do
43
    = link_to help_path, title: 'Help' do
44
      %span
45
        Help
46
  = nav_link(html_options: {class: profile_tab_class}) do
47
    = link_to profile_path, title: 'Profile Settings', data: {placement: 'bottom'} do
48
      %span
49
        Profile Settings