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
2ca4d581
Commit
2ca4d581
authored
Jan 28, 2019
by
Camil Staps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pagination to {user}/starred view
parent
bf3bd577
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
app/controllers/users_controller.rb
app/controllers/users_controller.rb
+5
-3
No files found.
app/controllers/users_controller.rb
View file @
2ca4d581
...
@@ -85,12 +85,14 @@ class UsersController < ApplicationController
...
@@ -85,12 +85,14 @@ class UsersController < ApplicationController
def
starred
def
starred
load_starred_projects
load_starred_projects
skip_pagination
=
Gitlab
::
Utils
.
to_boolean
(
params
[
:skip_pagination
])
skip_namespace
=
Gitlab
::
Utils
.
to_boolean
(
params
[
:skip_namespace
])
compact_mode
=
Gitlab
::
Utils
.
to_boolean
(
params
[
:compact_mode
])
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
render
'show'
}
format
.
html
{
render
'show'
}
format
.
json
do
format
.
json
do
render
json:
{
pager_json
(
"shared/projects/_list"
,
@starred_projects
.
count
,
projects:
@starred_projects
,
skip_pagination:
skip_pagination
,
skip_namespace:
skip_namespace
,
compact_mode:
compact_mode
)
html:
view_to_html_string
(
"shared/projects/_list"
,
projects:
@starred_projects
)
}
end
end
end
end
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