gitlab-org--gitlab-foss/app/views/layouts/nav/_group.html.haml

43 lines
1.4 KiB
Text
Raw Normal View History

%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
%i.fa.fa-dashboard
%span
Activity
- 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
%i.fa.fa-clock-o
%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
%i.fa.fa-exclamation-circle
%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
%i.fa.fa-tasks
%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
%i.fa.fa-users
%span
Members
2013-04-01 15:30:48 -04:00
- if can?(current_user, :manage_group, @group)
= 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
%i.fa.fa-cogs
%span
Settings
%i.fa.fa-angle-down
2013-04-01 15:30:48 -04:00
- if group_settings_page?
= render 'groups/settings_nav'