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
ba2089e0
Commit
ba2089e0
authored
Nov 02, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uses take rather than Kaminari
parent
af02f6ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+2
-2
No files found.
app/controllers/projects_controller.rb
View file @
ba2089e0
...
...
@@ -270,12 +270,12 @@ class ProjectsController < Projects::ApplicationController
branches
=
BranchesFinder
.
new
(
@repository
,
params
).
execute
options
=
{
'Branches'
=>
Kaminari
.
paginate_array
(
branches
).
page
(
params
[
:page
]).
per
(
100
),
'Branches'
=>
branches
.
take
(
100
),
}
unless
@repository
.
tag_count
.
zero?
tags
=
TagsFinder
.
new
(
@repository
,
params
).
execute
options
[
'Tags'
]
=
Kaminari
.
paginate_array
(
tags
).
page
(
params
[
:page
]).
per
(
100
)
options
[
'Tags'
]
=
tags
.
take
(
100
)
end
# If reference is commit id - we should add it to branch/tag selectbox
...
...
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