BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
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