BigW Consortium Gitlab

_dashboard.html.haml 2.02 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 8
  = nav_link(controller: :todos) do
    = link_to dashboard_todos_path, title: 'Todos' do
9 10
      = icon('bell fw')
      %span
11 12
        Todos
        %span.count= number_with_delimiter(todos_pending_count)
13
  = nav_link(path: 'dashboard#activity') do
14
    = link_to activity_dashboard_path, class: 'shortcuts-activity', title: 'Activity' do
15 16 17
      = icon('dashboard fw')
      %span
        Activity
18
  = nav_link(controller: :groups) do
19
    = link_to dashboard_groups_path, title: 'Groups' do
20
      = icon('group fw')
21 22
      %span
        Groups
23
  = nav_link(controller: :milestones) do
24
    = link_to dashboard_milestones_path, title: 'Milestones' do
25 26 27 28
      = icon('clock-o fw')
      %span
        Milestones
  = nav_link(path: 'dashboard#issues') do
29
    = link_to assigned_issues_dashboard_path, title: 'Issues', class: 'shortcuts-issues' do
30 31 32
      = icon('exclamation-circle fw')
      %span
        Issues
33
        %span.count= number_with_delimiter(current_user.assigned_issues.opened.count)
34 35 36 37 38 39
  = nav_link(path: 'dashboard#merge_requests') do
    = link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'shortcuts-merge_requests' do
      = icon('tasks fw')
      %span
        Merge Requests
        %span.count= number_with_delimiter(current_user.assigned_merge_requests.opened.count)
40
  = nav_link(controller: :snippets) do
41
    = link_to dashboard_snippets_path, title: 'Snippets' do
42
      = icon('clipboard fw')
43 44
      %span
        Snippets
45
  = nav_link(controller: :help) do
46
    = link_to help_path, title: 'Help' do
47
      = icon('question-circle fw')
48 49
      %span
        Help
50 51

  %li.separate-item
52
  = nav_link(controller: :profile) do
53
    = link_to profile_path, title: 'Profile Settings', data: {placement: 'bottom'} do
54 55 56
      = icon('user fw')
      %span
        Profile Settings