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

46 lines
1.7 KiB
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
%ul.nav.nav-sidebar
2015-09-11 14:41:01 +05:30
= nav_link do
= link_to root_path, title: 'Back to dashboard', data: {placement: 'right'}, class: 'back-link' do
= icon('caret-square-o-left fw')
%span
Back to Dashboard
%li.separate-item
2014-09-02 18:07:02 +05:30
= nav_link(path: 'groups#show', html_options: {class: 'home'}) do
2015-09-11 14:41:01 +05:30
= link_to group_path(@group), title: 'Home', data: {placement: 'right'} do
= icon('dashboard fw')
2015-04-26 12:48:37 +05:30
%span
2015-09-11 14:41:01 +05:30
Group
2015-04-26 12:48:37 +05:30
- if current_user
= nav_link(controller: [:group, :milestones]) do
2015-09-11 14:41:01 +05:30
= link_to group_milestones_path(@group), title: 'Milestones', data: {placement: 'right'} do
= 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: 'groups#issues') do
2015-09-11 14:41:01 +05:30
= link_to issues_group_path(@group), title: 'Issues', data: {placement: 'right'} do
= icon('exclamation-circle fw')
2015-04-26 12:48:37 +05:30
%span
Issues
- if current_user
%span.count= Issue.opened.of_group(@group).count
2014-09-02 18:07:02 +05:30
= nav_link(path: 'groups#merge_requests') do
2015-09-11 14:41:01 +05:30
= link_to merge_requests_group_path(@group), title: 'Merge Requests', data: {placement: 'right'} do
= icon('tasks fw')
2015-04-26 12:48:37 +05:30
%span
Merge Requests
- if current_user
%span.count= MergeRequest.opened.of_group(@group).count
= nav_link(controller: [:group_members]) do
2015-09-11 14:41:01 +05:30
= link_to group_group_members_path(@group), title: 'Members', data: {placement: 'right'} do
= icon('users fw')
2015-04-26 12:48:37 +05:30
%span
Members
- if can?(current_user, :admin_group, @group)
2015-09-11 14:41:01 +05:30
= nav_link(html_options: { class: "separate-item" }) do
= link_to edit_group_path(@group), title: 'Settings', data: {placement: 'right'} do
= icon ('cogs fw')
2015-04-26 12:48:37 +05:30
%span
Settings