BigW Consortium Gitlab

_dashboard.html.haml 1.58 KB
Newer Older
1
%ul.nav.nav-sidebar
2
  = nav_link(path: ['dashboard#show', 'root#show'], html_options: {class: 'home'}) do
Robert Speicher committed
3
    = link_to dashboard_path, title: 'Home', class: 'shortcuts-activity', data: {placement: 'right'} do
4
      = icon('dashboard fw')
5
      %span
6
        Your Projects
7
  = nav_link(path: 'projects#starred') do
8
    = link_to starred_dashboard_projects_path, title: 'Starred Projects', data: {placement: 'right'} do
9
      = icon('star fw')
10 11
      %span
        Starred Projects
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
Douwe Maan committed
17
  = nav_link(controller: :milestones) do
18
    = link_to dashboard_milestones_path, title: 'Milestones', data: {placement: 'right'} do
19
      = icon('clock-o fw')
Douwe Maan committed
20 21
      %span
        Milestones
22
  = nav_link(path: 'dashboard#issues') do
23
    = link_to assigned_issues_dashboard_path, title: 'Issues', class: 'shortcuts-issues', data: {placement: 'right'} do
24
      = icon('exclamation-circle fw')
25 26 27
      %span
        Issues
        %span.count= 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', data: {placement: 'right'} do
30
      = icon('tasks fw')
31 32 33
      %span
        Merge Requests
        %span.count= current_user.assigned_merge_requests.opened.count
34
  = nav_link(controller: :help) do
35
    = link_to help_path, title: 'Help', data: {placement: 'right'} do
36
      = icon('question-circle fw')
37 38
      %span
        Help