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
144212fb
Commit
144212fb
authored
Jun 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add members paginations to admin/project page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
9a4c8f7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app/controllers/admin/projects_controller.rb
app/controllers/admin/projects_controller.rb
+2
-0
app/views/admin/projects/show.html.haml
app/views/admin/projects/show.html.haml
+6
-2
No files found.
app/controllers/admin/projects_controller.rb
View file @
144212fb
...
...
@@ -17,6 +17,8 @@ class Admin::ProjectsController < Admin::ApplicationController
end
def
show
@group_members
=
@group
.
members
.
order
(
"group_access DESC"
).
page
(
params
[
:group_members_page
]).
per
(
30
)
@project_members
=
@project
.
users_projects
.
page
(
params
[
:project_members_page
]).
per
(
30
)
end
def
transfer
...
...
app/views/admin/projects/show.html.haml
View file @
144212fb
...
...
@@ -100,8 +100,10 @@
=
link_to
admin_group_path
(
@group
),
class:
'btn btn-small'
do
%i
.icon-edit
%ul
.well-list
-
@group
.
users_groups
.
order
(
'group_access DESC'
)
.
each
do
|
member
|
-
@group
_members
.
each
do
|
member
|
=
render
'users_groups/users_group'
,
member:
member
,
show_controls:
false
.panel-footer
=
paginate
@group_members
,
param_name:
'group_members_page'
,
theme:
'gitlab'
.panel.panel-default
.panel-heading
...
...
@@ -113,7 +115,7 @@
%i
.icon-edit
Manage Access
%ul
.well-list.team_members
-
@project
.
users_project
s
.
each
do
|
users_project
|
-
@project
_member
s
.
each
do
|
users_project
|
-
user
=
users_project
.
user
%li
.users_project
.list-item-name
...
...
@@ -126,3 +128,5 @@
%span
.light
=
users_project
.
human_access
=
link_to
project_team_member_path
(
@project
,
user
),
data:
{
confirm:
remove_from_project_team_message
(
@project
,
user
)},
method: :delete
,
remote:
true
,
class:
"btn btn-small btn-remove"
do
%i
.icon-remove
.panel-footer
=
paginate
@project_members
,
param_name:
'project_members_page'
,
theme:
'gitlab'
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