_dashboard.html.haml 1.3 KB
Newer Older
1
%ul.nav.nav-sidebar
D
Dmitriy Zaporozhets 已提交
2
  = nav_link(path: 'dashboard#show', html_options: {class: 'home'}) do
R
Robert Schilling 已提交
3
    = link_to root_path, title: 'Home', class: 'shortcuts-activity' do
4
      %i.fa.fa-dashboard
5 6
      %span
        Projects
7 8 9 10 11
  = nav_link(path: 'projects#starred') do
    = link_to starred_dashboard_projects_path, title: 'Starred Projects' do
      %i.fa.fa-star
      %span
        Starred Projects
12 13 14 15 16
  = nav_link(controller: :groups) do
    = link_to dashboard_groups_path, title: 'Groups' do
      %i.fa.fa-group
      %span
        Groups
D
Douwe Maan 已提交
17 18 19 20 21
  = nav_link(controller: :milestones) do
    = link_to dashboard_milestones_path, title: 'Milestones' do
      %i.fa.fa-clock-o
      %span
        Milestones
D
Dmitriy Zaporozhets 已提交
22
  = nav_link(path: 'dashboard#issues') do
23
    = link_to assigned_issues_dashboard_path, title: 'Issues', class: 'shortcuts-issues' do
24
      %i.fa.fa-exclamation-circle
25 26 27
      %span
        Issues
        %span.count= current_user.assigned_issues.opened.count
D
Dmitriy Zaporozhets 已提交
28
  = nav_link(path: 'dashboard#merge_requests') do
29
    = link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'shortcuts-merge_requests' do
30
      %i.fa.fa-tasks
31 32 33
      %span
        Merge Requests
        %span.count= current_user.assigned_merge_requests.opened.count
D
Dmitriy Zaporozhets 已提交
34
  = nav_link(controller: :help) do
35
    = link_to help_path, title: 'Help' do
36
      %i.fa.fa-question-circle
37 38
      %span
        Help