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

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