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
Boxiang Sun
gitlab-ce
Commits
6efda51c
Commit
6efda51c
authored
Jan 25, 2013
by
Andrey Kumanyaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix edit project members access link and page fixes refs #2745
parent
5ee8c132
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
app/controllers/admin/projects/application_controller.rb
app/controllers/admin/projects/application_controller.rb
+1
-1
app/controllers/admin/projects/members_controller.rb
app/controllers/admin/projects/members_controller.rb
+1
-1
app/views/admin/users/show.html.haml
app/views/admin/users/show.html.haml
+2
-2
config/routes.rb
config/routes.rb
+1
-1
No files found.
app/controllers/admin/projects/application_controller.rb
View file @
6efda51c
...
...
@@ -6,6 +6,6 @@ class Admin::Projects::ApplicationController < Admin::ApplicationController
protected
def
project
@project
||=
Project
.
find_
by_path
(
params
[
:project_id
])
@project
||=
Project
.
find_
with_namespace
(
params
[
:project_id
])
end
end
app/controllers/admin/projects/members_controller.rb
View file @
6efda51c
...
...
@@ -22,7 +22,7 @@ class Admin::Projects::MembersController < Admin::Projects::ApplicationControlle
private
def
team_member
@member
||=
project
.
users
.
find
(
params
[
:id
])
@member
||=
project
.
users
.
find
_by_username
(
params
[
:id
])
end
def
team_member_relation
...
...
app/views/admin/users/show.html.haml
View file @
6efda51c
...
...
@@ -123,5 +123,5 @@
%tr
%td
=
link_to
project
.
name_with_namespace
,
admin_project_path
(
project
)
%td
=
tm
.
project_access_human
%td
=
link_to
'Edit Access'
,
edit_admin_
team_member_path
(
tm
),
class:
"btn small"
%td
=
link_to
'Remove from team'
,
admin_
team_member_path
(
tm
),
confirm:
'Are you sure?'
,
method: :delete
,
class:
"btn small danger"
%td
=
link_to
'Edit Access'
,
edit_admin_
project_member_path
(
project
.
path_with_namespace
,
tm
.
user
.
username
),
class:
"btn small"
%td
=
link_to
'Remove from team'
,
admin_
project_member_path
(
project
.
path_with_namespace
,
tm
.
user
.
username
),
confirm:
'Are you sure?'
,
method: :delete
,
class:
"btn small danger"
config/routes.rb
View file @
6efda51c
...
...
@@ -84,7 +84,7 @@ Gitlab::Application.routes.draw do
get
:team
put
:team_update
end
scope
module: :projects
,
constraints:
{
id:
/[
^\/
]+/
}
do
scope
module: :projects
,
constraints:
{
id:
/[
a-zA-Z.\/0-9_\-
]+/
}
do
resources
:members
,
only:
[
:edit
,
:update
,
:destroy
]
end
end
...
...
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