2014-12-25 03:13:45 -05:00
|
|
|
%ul.nav.nav-sidebar
|
2015-07-10 07:07:24 -04:00
|
|
|
= nav_link do
|
2015-12-02 08:05:10 -05:00
|
|
|
= link_to root_path, title: 'Go to dashboard', class: 'back-link' do
|
2015-07-10 07:07:24 -04:00
|
|
|
= icon('caret-square-o-left fw')
|
|
|
|
%span
|
2015-11-03 07:22:11 -05:00
|
|
|
Go to dashboard
|
2015-07-10 07:07:24 -04:00
|
|
|
|
|
|
|
%li.separate-item
|
|
|
|
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(path: 'groups#show', html_options: {class: 'home'}) do
|
2015-12-02 08:05:10 -05:00
|
|
|
= link_to group_path(@group), title: 'Home' do
|
2015-04-23 14:29:00 -04:00
|
|
|
= icon('dashboard fw')
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
2015-07-10 07:29:08 -04:00
|
|
|
Group
|
2015-09-14 06:46:24 -04:00
|
|
|
- if can?(current_user, :read_group, @group)
|
|
|
|
- if current_user
|
|
|
|
= nav_link(controller: [:group, :milestones]) do
|
2015-12-02 08:05:10 -05:00
|
|
|
= link_to group_milestones_path(@group), title: 'Milestones' do
|
2015-09-14 06:46:24 -04:00
|
|
|
= icon('clock-o fw')
|
|
|
|
%span
|
|
|
|
Milestones
|
|
|
|
= nav_link(path: 'groups#issues') do
|
2015-12-02 08:05:10 -05:00
|
|
|
= link_to issues_group_path(@group), title: 'Issues' do
|
2015-09-14 06:46:24 -04:00
|
|
|
= icon('exclamation-circle fw')
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
2015-09-14 06:46:24 -04:00
|
|
|
Issues
|
|
|
|
- if current_user
|
|
|
|
%span.count= Issue.opened.of_group(@group).count
|
|
|
|
= nav_link(path: 'groups#merge_requests') do
|
2015-12-02 08:05:10 -05:00
|
|
|
= link_to merge_requests_group_path(@group), title: 'Merge Requests' do
|
2015-09-14 06:46:24 -04:00
|
|
|
= icon('tasks fw')
|
|
|
|
%span
|
|
|
|
Merge Requests
|
|
|
|
- if current_user
|
|
|
|
%span.count= MergeRequest.opened.of_group(@group).count
|
|
|
|
= nav_link(controller: [:group_members]) do
|
2015-12-02 08:05:10 -05:00
|
|
|
= link_to group_group_members_path(@group), title: 'Members' do
|
2015-09-14 06:46:24 -04:00
|
|
|
= icon('users fw')
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
2015-09-14 06:46:24 -04:00
|
|
|
Members
|
|
|
|
- if can?(current_user, :admin_group, @group)
|
|
|
|
= nav_link(html_options: { class: "separate-item" }) do
|
2015-12-02 08:05:10 -05:00
|
|
|
= link_to edit_group_path(@group), title: 'Settings' do
|
2015-09-14 06:46:24 -04:00
|
|
|
= icon ('cogs fw')
|
|
|
|
%span
|
|
|
|
Settings
|