2014-12-25 03:13:45 -05:00
|
|
|
%ul.nav.nav-sidebar
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(path: 'groups#show', html_options: {class: 'home'}) do
|
|
|
|
= link_to group_path(@group), title: "Home" do
|
2014-12-16 09:58:15 -05:00
|
|
|
%i.fa.fa-dashboard
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
|
|
|
Activity
|
2014-12-17 05:26:33 -05:00
|
|
|
- if current_user
|
|
|
|
= nav_link(controller: [:group, :milestones]) do
|
2015-01-24 09:40:25 -05:00
|
|
|
= link_to group_milestones_path(@group), title: 'Milestones' do
|
2014-12-17 05:26:33 -05:00
|
|
|
%i.fa.fa-clock-o
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
|
|
|
Milestones
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(path: 'groups#issues') do
|
2015-01-24 09:40:25 -05:00
|
|
|
= link_to issues_group_path(@group), title: 'Issues' do
|
2014-12-16 09:58:15 -05:00
|
|
|
%i.fa.fa-exclamation-circle
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
|
|
|
Issues
|
|
|
|
- if current_user
|
|
|
|
%span.count= Issue.opened.of_group(@group).count
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(path: 'groups#merge_requests') do
|
2015-01-24 09:40:25 -05:00
|
|
|
= link_to merge_requests_group_path(@group), title: 'Merge Requests' do
|
2014-12-16 09:58:15 -05:00
|
|
|
%i.fa.fa-tasks
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
|
|
|
Merge Requests
|
|
|
|
- if current_user
|
|
|
|
%span.count= MergeRequest.opened.of_group(@group).count
|
2013-07-12 12:01:39 -04:00
|
|
|
= nav_link(path: 'groups#members') do
|
2015-01-24 09:40:25 -05:00
|
|
|
= link_to members_group_path(@group), title: 'Members' do
|
2014-12-16 09:58:15 -05:00
|
|
|
%i.fa.fa-users
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
|
|
|
Members
|
2013-04-01 15:30:48 -04:00
|
|
|
|
|
|
|
- if can?(current_user, :manage_group, @group)
|
2014-12-16 09:58:15 -05:00
|
|
|
= nav_link(html_options: { class: "#{"active" if group_settings_page?} separate-item" }) do
|
2015-01-24 09:40:25 -05:00
|
|
|
= link_to edit_group_path(@group), title: 'Settings', class: "tab no-highlight" do
|
2014-12-16 09:58:15 -05:00
|
|
|
%i.fa.fa-cogs
|
2014-12-25 03:13:45 -05:00
|
|
|
%span
|
|
|
|
Settings
|
|
|
|
%i.fa.fa-angle-down
|
2013-04-01 15:30:48 -04:00
|
|
|
|
2014-12-16 09:58:15 -05:00
|
|
|
- if group_settings_page?
|
|
|
|
= render 'groups/settings_nav'
|