_dashboard.html.haml 1014 字节
Newer Older
1
%ul.nav.nav-sidebar.navbar-collapse.collapse
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
        Activity
D
Dmitriy Zaporozhets 已提交
7
  = nav_link(path: 'dashboard#projects') do
R
Robert Schilling 已提交
8
    = link_to projects_dashboard_path, class: 'shortcuts-projects' do
9
      %i.fa.fa-cube
10 11
      %span
        Projects
D
Dmitriy Zaporozhets 已提交
12
  = nav_link(path: 'dashboard#issues') do
R
Robert Schilling 已提交
13
    = link_to issues_dashboard_path, class: 'shortcuts-issues' do
14
      %i.fa.fa-exclamation-circle
15 16 17
      %span
        Issues
        %span.count= current_user.assigned_issues.opened.count
D
Dmitriy Zaporozhets 已提交
18
  = nav_link(path: 'dashboard#merge_requests') do
R
Robert Schilling 已提交
19
    = link_to merge_requests_dashboard_path, class: 'shortcuts-merge_requests' do
20
      %i.fa.fa-tasks
21 22 23
      %span
        Merge Requests
        %span.count= current_user.assigned_merge_requests.opened.count
D
Dmitriy Zaporozhets 已提交
24
  = nav_link(controller: :help) do
25 26
    = link_to help_path do
      %i.fa.fa-question-circle
27 28
      %span
        Help
D
Dmitriy Zaporozhets 已提交
29