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

38 lines
1.4 KiB
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
= render 'layouts/nav/group_settings'
2015-09-11 14:41:01 +05:30
2016-06-02 11:05:42 +05:30
%ul.nav-links
2014-09-02 18:07:02 +05:30
= nav_link(path: 'groups#show', html_options: {class: 'home'}) do
2015-12-23 02:04:40 +05:30
= link_to group_path(@group), title: 'Home' do
2016-06-02 11:05:42 +05:30
= icon('group fw')
2015-04-26 12:48:37 +05:30
%span
2015-09-11 14:41:01 +05:30
Group
2016-06-02 11:05:42 +05:30
= nav_link(path: 'groups#activity') do
= link_to activity_group_path(@group), title: 'Activity' do
= icon('dashboard fw')
%span
Activity
= nav_link(controller: [:group, :milestones]) do
= link_to group_milestones_path(@group), title: 'Milestones' do
= icon('clock-o fw')
%span
Milestones
= nav_link(path: 'groups#issues') do
= link_to issues_group_path(@group), title: 'Issues' do
= icon('exclamation-circle fw')
%span
Issues
- issues = IssuesFinder.new(current_user, group_id: @group.id, state: 'opened').execute
%span.badge.count= number_with_delimiter(issues.count)
= nav_link(path: 'groups#merge_requests') do
= link_to merge_requests_group_path(@group), title: 'Merge Requests' do
= icon('tasks fw')
%span
Merge Requests
- merge_requests = MergeRequestsFinder.new(current_user, group_id: @group.id, state: 'opened').execute
%span.badge.count= number_with_delimiter(merge_requests.count)
= nav_link(controller: [:group_members]) do
= link_to group_group_members_path(@group), title: 'Members' do
= icon('users fw')
%span
Members