debian-mirror-gitlab/app/views/layouts/nav/_dashboard.html.haml

39 lines
1.3 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%ul.nav.nav-sidebar
2014-09-02 18:07:02 +05:30
= nav_link(path: 'dashboard#show', html_options: {class: 'home'}) do
2015-04-26 12:48:37 +05:30
= link_to root_path, title: 'Home', class: 'shortcuts-activity' do
%i.fa.fa-dashboard
%span
Your Projects
= nav_link(path: 'projects#starred') do
= link_to starred_dashboard_projects_path, title: 'Starred Projects' do
%i.fa.fa-star
%span
Starred Projects
= nav_link(controller: :groups) do
= link_to dashboard_groups_path, title: 'Groups' do
%i.fa.fa-group
%span
Groups
= nav_link(controller: :milestones) do
= link_to dashboard_milestones_path, title: 'Milestones' do
%i.fa.fa-clock-o
%span
Milestones
2014-09-02 18:07:02 +05:30
= nav_link(path: 'dashboard#issues') do
2015-04-26 12:48:37 +05:30
= link_to assigned_issues_dashboard_path, title: 'Issues', class: 'shortcuts-issues' do
%i.fa.fa-exclamation-circle
%span
Issues
%span.count= current_user.assigned_issues.opened.count
2014-09-02 18:07:02 +05:30
= nav_link(path: 'dashboard#merge_requests') do
2015-04-26 12:48:37 +05:30
= link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'shortcuts-merge_requests' do
%i.fa.fa-tasks
%span
Merge Requests
%span.count= current_user.assigned_merge_requests.opened.count
2014-09-02 18:07:02 +05:30
= nav_link(controller: :help) do
2015-04-26 12:48:37 +05:30
= link_to help_path, title: 'Help' do
%i.fa.fa-question-circle
%span
Help