2013-01-19 18:33:38 +01:00
|
|
|
!!! 5
|
|
|
|
%html{ lang: "en"}
|
2013-01-22 23:20:27 +01:00
|
|
|
= render "layouts/head", title: "#{@team.name}"
|
2013-01-19 18:33:38 +01:00
|
|
|
%body{class: "#{app_theme} application"}
|
2013-01-24 09:16:03 +01:00
|
|
|
= render "layouts/head_panel", title: "team: #{@team.name}"
|
2013-02-28 10:06:52 +01:00
|
|
|
= render "layouts/flash"
|
2013-01-19 18:33:38 +01:00
|
|
|
.container
|
|
|
|
%ul.main_menu
|
|
|
|
= nav_link(path: 'teams#show', html_options: {class: 'home'}) do
|
2013-01-31 10:22:06 +01:00
|
|
|
= link_to team_path(@team), title: "Home" do
|
|
|
|
%i.icon-home
|
2013-01-24 12:39:00 +01:00
|
|
|
|
2013-01-19 18:33:38 +01:00
|
|
|
= nav_link(path: 'teams#issues') do
|
2013-01-22 23:20:27 +01:00
|
|
|
= link_to issues_team_path(@team) do
|
2013-01-19 18:33:38 +01:00
|
|
|
Issues
|
2013-01-22 23:20:27 +01:00
|
|
|
%span.count= Issue.opened.of_user_team(@team).count
|
2013-01-24 12:39:00 +01:00
|
|
|
|
2013-01-19 18:33:38 +01:00
|
|
|
= nav_link(path: 'teams#merge_requests') do
|
2013-01-22 23:20:27 +01:00
|
|
|
= link_to merge_requests_team_path(@team) do
|
2013-01-19 18:33:38 +01:00
|
|
|
Merge Requests
|
2013-01-22 23:20:27 +01:00
|
|
|
%span.count= MergeRequest.opened.of_user_team(@team).count
|
2013-01-24 12:39:00 +01:00
|
|
|
|
|
|
|
= nav_link(controller: [:members]) do
|
|
|
|
= link_to team_members_path(@team), class: "team-tab tab" do
|
|
|
|
Members
|
2013-01-25 15:36:14 +01:00
|
|
|
%span.count= @team.members.count
|
2013-01-24 12:39:00 +01:00
|
|
|
|
|
|
|
- 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
|
2013-03-14 11:38:43 +01:00
|
|
|
Settings
|
2013-01-24 12:39:00 +01:00
|
|
|
|
2013-01-19 18:33:38 +01:00
|
|
|
.content= yield
|