group.html.haml 1.24 KB
Newer Older
1 2
!!! 5
%html{ lang: "en"}
3
  = render "layouts/head", title: "#{@group.name}"
4 5
  %body{class: "#{app_theme} application"}
    = render "layouts/flash"
6
    = render "layouts/head_panel", title: "group: #{@group.name}"
7 8
    .container
      %ul.main_menu
9
        = nav_link(path: 'groups#show', html_options: {class: 'home'}) do
10 11
          = link_to group_path(@group), title: "Home" do
            %i.icon-home
12 13
        = nav_link(path: 'groups#issues') do
          = link_to issues_group_path(@group) do
14
            Issues
15
            %span.count= current_user.assigned_issues.opened.of_group(@group).count
16 17
        = nav_link(path: 'groups#merge_requests') do
          = link_to merge_requests_group_path(@group) do
18
            Merge Requests
19
            %span.count= current_user.cared_merge_requests.opened.of_group(@group).count
20 21 22 23
        = nav_link(path: 'groups#search') do
          = link_to "Search", search_group_path(@group)
        = nav_link(path: 'groups#people') do
          = link_to "People", people_group_path(@group)
24

25 26 27 28 29 30
        - if can?(current_user, :manage_group, @group)
          = nav_link(path: 'groups#edit') do
            = link_to edit_group_path(@group), class: "tab " do
              %i.icon-edit
              Edit Group

31
      .content= yield