summaryrefslogtreecommitdiff
path: root/app/views/layouts/user_team.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 22:30:48 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 22:30:48 +0300
commit8cadeb67502d9f674dc69c0b05341269c2baeb8f (patch)
tree5e950d9341b3f97d7693d05842585f84505d7a8b /app/views/layouts/user_team.html.haml
parent19ab03f4612a2e622098bc199538380b011754c1 (diff)
downloadgitlab-ce-8cadeb67502d9f674dc69c0b05341269c2baeb8f.tar.gz
nav views refactoring
Diffstat (limited to 'app/views/layouts/user_team.html.haml')
-rw-r--r--app/views/layouts/user_team.html.haml28
1 files changed, 3 insertions, 25 deletions
diff --git a/app/views/layouts/user_team.html.haml b/app/views/layouts/user_team.html.haml
index 483bfad66ae..f2ead9d242a 100644
--- a/app/views/layouts/user_team.html.haml
+++ b/app/views/layouts/user_team.html.haml
@@ -4,30 +4,8 @@
%body{class: "#{app_theme} application"}
= render "layouts/head_panel", title: "team: #{@team.name}"
= render "layouts/flash"
- .container
- %ul.main_menu
- = 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
+ %nav.main-nav
+ .container= render 'layouts/nav/team'
+ .container
.content= yield