_team.html.haml 803 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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
%ul
  = nav_link(path: 'teams#show', html_options: {class: 'home'}) do
    = link_to team_path(@team), title: "Home" do
      %i.icon-home

  = nav_link(path: 'teams#issues') do
    = link_to issues_team_path(@team) do
      Issues
      %span.count= Issue.opened.of_user_team(@team).count

  = nav_link(path: 'teams#merge_requests') do
    = link_to merge_requests_team_path(@team) do
      Merge Requests
      %span.count= MergeRequest.opened.of_user_team(@team).count

  = nav_link(controller: [:members]) do
    = link_to team_members_path(@team), class: "team-tab tab" do
      Members
      %span.count= @team.members.count

  - if can? current_user, :admin_user_team, @team
    = nav_link(path: 'teams#edit') do
      = link_to edit_team_path(@team), class: "stat-tab tab " do
        Settings