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
Kazuhiko Shiozaki
gitlab-ce
Commits
23b3f051
Commit
23b3f051
authored
Jun 13, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Team admin should be able to see settings tab
parent
a6e44bfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app/views/layouts/nav/_team.html.haml
app/views/layouts/nav/_team.html.haml
+1
-1
app/views/teams/edit.html.haml
app/views/teams/edit.html.haml
+3
-2
No files found.
app/views/layouts/nav/_team.html.haml
View file @
23b3f051
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
Members
Members
%span
.count
=
@team
.
members
.
count
%span
.count
=
@team
.
members
.
count
-
if
can?
current_user
,
:
admin
_user_team
,
@team
-
if
can?
current_user
,
:
manage
_user_team
,
@team
=
nav_link
(
path:
'teams#edit'
)
do
=
nav_link
(
path:
'teams#edit'
)
do
=
link_to
edit_team_path
(
@team
),
class:
"stat-tab tab "
do
=
link_to
edit_team_path
(
@team
),
class:
"stat-tab tab "
do
Settings
Settings
...
...
app/views/teams/edit.html.haml
View file @
23b3f051
...
@@ -5,8 +5,9 @@
...
@@ -5,8 +5,9 @@
=
link_to
'Projects'
,
'#tab-projects'
,
'data-toggle'
=>
'tab'
=
link_to
'Projects'
,
'#tab-projects'
,
'data-toggle'
=>
'tab'
%li
%li
=
link_to
'Edit Team'
,
'#tab-edit'
,
'data-toggle'
=>
'tab'
=
link_to
'Edit Team'
,
'#tab-edit'
,
'data-toggle'
=>
'tab'
%li
-
if
can?
current_user
,
:admin_user_team
,
@team
=
link_to
'Remove'
,
'#tab-remove'
,
'data-toggle'
=>
'tab'
%li
=
link_to
'Remove'
,
'#tab-remove'
,
'data-toggle'
=>
'tab'
.span9
.span9
.tab-content
.tab-content
...
...
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