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

57 lines
2 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%ul.nav.nav-sidebar
2015-09-25 12:07:36 +05:30
= nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: 'home'}) do
2015-12-23 02:04:40 +05:30
= link_to dashboard_projects_path, title: 'Projects' do
2015-09-25 12:07:36 +05:30
= icon('home fw')
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('bell fw')
%span
Todos
%span.count= number_with_delimiter(todos_pending_count)
2015-09-25 12:07:36 +05:30
= nav_link(path: 'dashboard#activity') do
2015-12-23 02:04:40 +05:30
= link_to activity_dashboard_path, class: 'shortcuts-activity', title: 'Activity' do
2015-09-25 12:07:36 +05:30
= icon('dashboard fw')
2015-04-26 12:48:37 +05:30
%span
2015-09-25 12:07:36 +05:30
Activity
2015-04-26 12:48:37 +05:30
= nav_link(controller: :groups) do
2015-12-23 02:04:40 +05:30
= link_to dashboard_groups_path, title: 'Groups' do
2015-09-11 14:41:01 +05:30
= icon('group fw')
2015-04-26 12:48:37 +05:30
%span
Groups
= nav_link(controller: :milestones) do
2015-12-23 02:04:40 +05:30
= link_to dashboard_milestones_path, title: 'Milestones' do
2015-09-11 14:41:01 +05:30
= icon('clock-o fw')
2015-04-26 12:48:37 +05:30
%span
Milestones
2014-09-02 18:07:02 +05:30
= nav_link(path: 'dashboard#issues') do
2015-12-23 02:04:40 +05:30
= link_to assigned_issues_dashboard_path, title: 'Issues', class: 'shortcuts-issues' do
2015-09-11 14:41:01 +05:30
= icon('exclamation-circle fw')
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: 'shortcuts-merge_requests' do
= icon('tasks fw')
%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
2015-09-25 12:07:36 +05:30
= icon('clipboard fw')
%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
2015-09-11 14:41:01 +05:30
= icon('question-circle fw')
2015-04-26 12:48:37 +05:30
%span
Help
2015-09-25 12:07:36 +05:30
%li.separate-item
= nav_link(controller: :profile) do
2015-12-23 02:04:40 +05:30
= link_to profile_path, title: 'Profile Settings', data: {placement: 'bottom'} do
2015-09-25 12:07:36 +05:30
= icon('user fw')
%span
Profile Settings