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

65 lines
2.4 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%ul.nav.nav-sidebar
= nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: "#{project_tab_class} home"}) do
= link_to dashboard_projects_path, title: 'Projects', class: 'dashboard-shortcuts-projects' do
.icon-container
= navbar_icon('project')
2015-04-26 12:48:37 +05:30
%span
2015-09-25 12:07:36 +05:30
Projects
2016-04-02 18:10:28 +05:30
= nav_link(controller: :todos) do
= link_to dashboard_todos_path, title: 'Todos' do
.icon-container
= icon('bell fw')
2016-04-02 18:10:28 +05:30
%span
Todos
%span.count= number_with_delimiter(todos_pending_count)
2015-09-25 12:07:36 +05:30
= nav_link(path: 'dashboard#activity') do
= link_to activity_dashboard_path, class: 'dashboard-shortcuts-activity', title: 'Activity' do
.icon-container
= navbar_icon('activity')
2015-04-26 12:48:37 +05:30
%span
2015-09-25 12:07:36 +05:30
Activity
2016-06-02 11:05:42 +05:30
= nav_link(controller: [:groups, 'groups/milestones', 'groups/group_members']) do
2015-12-23 02:04:40 +05:30
= link_to dashboard_groups_path, title: 'Groups' do
.icon-container
= navbar_icon('group')
2015-04-26 12:48:37 +05:30
%span
Groups
2016-06-02 11:05:42 +05:30
= nav_link(controller: 'dashboard/milestones') do
2015-12-23 02:04:40 +05:30
= link_to dashboard_milestones_path, title: 'Milestones' do
.icon-container
= navbar_icon('milestones')
2015-04-26 12:48:37 +05:30
%span
Milestones
2014-09-02 18:07:02 +05:30
= nav_link(path: 'dashboard#issues') do
= link_to assigned_issues_dashboard_path, title: 'Issues', class: 'dashboard-shortcuts-issues' do
.icon-container
= navbar_icon('issues')
2015-04-26 12:48:37 +05:30
%span
Issues
%span.count= number_with_delimiter(current_user.assigned_issues.opened.count)
2016-04-02 18:10:28 +05:30
= nav_link(path: 'dashboard#merge_requests') do
= link_to assigned_mrs_dashboard_path, title: 'Merge Requests', class: 'dashboard-shortcuts-merge_requests' do
.icon-container
= navbar_icon('mr')
2016-04-02 18:10:28 +05:30
%span
Merge Requests
%span.count= number_with_delimiter(current_user.assigned_merge_requests.opened.count)
2015-09-25 12:07:36 +05:30
= nav_link(controller: :snippets) do
2015-12-23 02:04:40 +05:30
= link_to dashboard_snippets_path, title: 'Snippets' do
.icon-container
= icon('clipboard fw')
2015-09-25 12:07:36 +05:30
%span
Snippets
2014-09-02 18:07:02 +05:30
= nav_link(controller: :help) do
2015-12-23 02:04:40 +05:30
= link_to help_path, title: 'Help' do
.icon-container
= icon('question-circle fw')
2015-04-26 12:48:37 +05:30
%span
Help
2016-06-02 11:05:42 +05:30
= nav_link(html_options: {class: profile_tab_class}) do
2015-12-23 02:04:40 +05:30
= link_to profile_path, title: 'Profile Settings', data: {placement: 'bottom'} do
.icon-container
= icon('user fw')
2015-09-25 12:07:36 +05:30
%span
Profile Settings