BigW Consortium Gitlab

_group.html.haml 1.36 KB
Newer Older
1 2
%div{ class: nav_control_class }
  = render 'layouts/nav/group_settings'
3

4
  %ul.nav-links.scrolling-tabs
5
    %li.fade-left
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
    = nav_link(path: 'groups#show', html_options: {class: 'home'}) do
      = link_to group_path(@group), title: 'Home' do
        %span
          Group
    = nav_link(path: 'groups#activity') do
      = link_to activity_group_path(@group), title: 'Activity' do
        %span
          Activity
    = nav_link(controller: [:group, :milestones]) do
      = link_to group_milestones_path(@group), title: 'Milestones' do
        %span
          Milestones
    = nav_link(path: 'groups#issues') do
      = link_to issues_group_path(@group), title: 'Issues' do
        %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
        %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
        %span
          Members
34
    %li.fade-right