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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1e3d2389
Commit
1e3d2389
authored
Dec 26, 2012
by
Andrey Kumanyaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace short loop variable from "p" to "project"
parent
2753cea7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
app/controllers/admin/groups_controller.rb
app/controllers/admin/groups_controller.rb
+2
-2
app/controllers/groups_controller.rb
app/controllers/groups_controller.rb
+2
-2
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+3
-3
No files found.
app/controllers/admin/groups_controller.rb
View file @
1e3d2389
...
@@ -68,8 +68,8 @@ class Admin::GroupsController < AdminController
...
@@ -68,8 +68,8 @@ class Admin::GroupsController < AdminController
end
end
def
project_teams_update
def
project_teams_update
@group
.
projects
.
each
do
|
p
|
@group
.
projects
.
each
do
|
p
roject
|
p
.
add_users_ids_to_team
(
params
[
:user_ids
],
params
[
:project_access
])
p
roject
.
add_users_ids_to_team
(
params
[
:user_ids
],
params
[
:project_access
])
end
end
redirect_to
[
:admin
,
@group
],
notice:
'Users was successfully added.'
redirect_to
[
:admin
,
@group
],
notice:
'Users was successfully added.'
end
end
...
...
app/controllers/groups_controller.rb
View file @
1e3d2389
...
@@ -59,8 +59,8 @@ class GroupsController < ApplicationController
...
@@ -59,8 +59,8 @@ class GroupsController < ApplicationController
end
end
def
team_members
def
team_members
@group
.
projects
.
each
do
|
p
|
@group
.
projects
.
each
do
|
p
roject
|
p
.
add_users_ids_to_team
(
params
[
:user_ids
],
params
[
:project_access
])
p
roject
.
add_users_ids_to_team
(
params
[
:user_ids
],
params
[
:project_access
])
end
end
redirect_to
people_group_path
(
@group
),
notice:
'Users was successfully added.'
redirect_to
people_group_path
(
@group
),
notice:
'Users was successfully added.'
end
end
...
...
app/views/admin/groups/show.html.haml
View file @
1e3d2389
...
@@ -76,9 +76,9 @@
...
@@ -76,9 +76,9 @@
%tr
{
class:
"user_#{u.id}"
}
%tr
{
class:
"user_#{u.id}"
}
%td
.name
=
link_to
u
.
name
,
admin_user_path
(
u
)
%td
.name
=
link_to
u
.
name
,
admin_user_path
(
u
)
%td
.projects_access
%td
.projects_access
-
u
.
projects
.
in_group
(
@group
).
each
do
|
p
|
-
u
.
projects
.
in_group
(
@group
).
each
do
|
p
roject
|
-
u_p
=
u
.
users_projects
.
in_project
(
p
).
first
-
u_p
=
u
.
users_projects
.
in_project
(
p
roject
).
first
=
"
#{
p
.
name
}
(
#{
link_to
u_p
.
project_access_human
,
edit_admin_team_member_path
(
u_p
)
}
)"
.
html_safe
=
"
#{
p
roject
.
name
}
(
#{
link_to
u_p
.
project_access_human
,
edit_admin_team_member_path
(
u_p
)
}
)"
.
html_safe
%tr
%tr
%td
.input
=
select_tag
:user_ids
,
options_from_collection_for_select
(
@users
,
:id
,
:name
),
multiple:
true
,
data:
{
placeholder:
'Select users'
},
class:
'chosen span5'
%td
.input
=
select_tag
:user_ids
,
options_from_collection_for_select
(
@users
,
:id
,
:name
),
multiple:
true
,
data:
{
placeholder:
'Select users'
},
class:
'chosen span5'
%td
=
select_tag
:project_access
,
options_for_select
(
Project
.
access_options
),
{
class:
"project-access-select chosen span3"
}
%td
=
select_tag
:project_access
,
options_for_select
(
Project
.
access_options
),
{
class:
"project-access-select chosen span3"
}
...
...
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