summaryrefslogtreecommitdiff
path: root/app/views/layouts/group.html.haml
blob: 2c144de49b3ec1236009fba2c56195a6fbd74608 (plain)
1
2
3
4
5
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
!!! 5
%html{ lang: "en"}
  = render "layouts/head", title: "#{@group.name}"
  %body{class: "#{app_theme} application"}
    = render "layouts/head_panel", title: "group: #{@group.name}"
    = render "layouts/flash"
    .container
      %ul.main_menu
        = nav_link(path: 'groups#show', html_options: {class: 'home'}) do
          = link_to group_path(@group), title: "Home" do
            %i.icon-home
        = nav_link(path: 'groups#issues') do
          = link_to issues_group_path(@group) do
            Issues
            %span.count= current_user.assigned_issues.opened.of_group(@group).count
        = nav_link(path: 'groups#merge_requests') do
          = link_to merge_requests_group_path(@group) do
            Merge Requests
            %span.count= current_user.cared_merge_requests.opened.of_group(@group).count
        = 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)

        - 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

      .content= yield