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