Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
11b7b93c
Commit
11b7b93c
authored
Jan 24, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move team navs to upper nav
parent
b5dd9e67
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
app/views/layouts/user_team.html.haml
app/views/layouts/user_team.html.haml
+18
-0
app/views/teams/_team_head.html.haml
app/views/teams/_team_head.html.haml
+0
-19
No files found.
app/views/layouts/user_team.html.haml
View file @
11b7b93c
...
...
@@ -8,15 +8,33 @@
%ul
.main_menu
=
nav_link
(
path:
'teams#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
"Home"
,
team_path
(
@team
),
title:
"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
(
path:
'teams#search'
)
do
=
link_to
"Search"
,
search_team_path
(
@team
)
=
nav_link
(
controller:
[
:members
])
do
=
link_to
team_members_path
(
@team
),
class:
"team-tab tab"
do
Members
-
if
can?
current_user
,
:admin_user_team
,
@team
=
nav_link
(
controller:
[
:projects
])
do
=
link_to
team_projects_path
(
@team
),
class:
"team-tab tab"
do
%i
.icon-briefcase
Projects
=
nav_link
(
path:
'teams#edit'
)
do
=
link_to
edit_team_path
(
@team
),
class:
"stat-tab tab "
do
%i
.icon-edit
Edit Team
.content
=
yield
app/views/teams/_team_head.html.haml
View file @
11b7b93c
%ul
.nav.nav-tabs
=
nav_link
(
path:
'teams#show'
)
do
=
link_to
team_path
(
@team
),
class:
"activities-tab tab"
do
%i
.icon-home
Show
=
nav_link
(
controller:
[
:members
])
do
=
link_to
team_members_path
(
@team
),
class:
"team-tab tab"
do
%i
.icon-user
Members
=
nav_link
(
controller:
[
:projects
])
do
=
link_to
team_projects_path
(
@team
),
class:
"team-tab tab"
do
%i
.icon-briefcase
Projects
-
if
can?
current_user
,
:admin_user_team
,
@team
=
nav_link
(
path:
'teams#edit'
,
html_options:
{
class:
'right'
})
do
=
link_to
edit_team_path
(
@team
),
class:
"stat-tab tab "
do
%i
.icon-edit
Edit Team
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment