BigW Consortium Gitlab

_dashboard.html.haml 1.83 KB
Newer Older
1
%ul.nav.nav-sidebar
2
  = nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: 'home'}) do
3
    = link_to dashboard_projects_path, title: 'Projects' do
4
      = icon('home fw')
5
      %span
6
        Projects
7
  = nav_link(path: 'dashboard#activity') do
8
    = link_to activity_dashboard_path, class: 'shortcuts-activity', title: 'Activity' do
9 10 11
      = icon('dashboard fw')
      %span
        Activity
12
  = nav_link(controller: :groups) do
13
    = link_to dashboard_groups_path, title: 'Groups' do
14
      = icon('group fw')
15 16
      %span
        Groups
17
  = nav_link(controller: :milestones) do
18
    = link_to dashboard_milestones_path, title: 'Milestones' do
19 20 21 22
      = icon('clock-o fw')
      %span
        Milestones
  = nav_link(path: 'dashboard#issues') do
23
    = link_to assigned_issues_dashboard_path, title: 'Issues', class: 'shortcuts-issues' do
24 25 26
      = icon('exclamation-circle fw')
      %span
        Issues
27
        %span.count= number_with_delimiter(current_user.assigned_issues.opened.count)
28
    = nav_link(path: 'dashboard#merge_requests') do
29
      = link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'shortcuts-merge_requests' do
30 31 32
        = icon('tasks fw')
        %span
          Merge Requests
33
          %span.count= number_with_delimiter(current_user.assigned_merge_requests.opened.count)
34
  = nav_link(controller: :snippets) do
35
    = link_to dashboard_snippets_path, title: 'Snippets' do
36
      = icon('clipboard fw')
37 38
      %span
        Snippets
39
  = nav_link(controller: :help) do
40
    = link_to help_path, title: 'Help' do
41
      = icon('question-circle fw')
42 43
      %span
        Help
44 45

  %li.separate-item
46
  = nav_link(controller: :profile) do
47
    = link_to profile_path, title: 'Profile Settings', data: {placement: 'bottom'} do
48 49 50
      = icon('user fw')
      %span
        Profile Settings