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
f9750b49
Commit
f9750b49
authored
Nov 03, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed how the data is returned - we only care about the branch/tag name
parent
ba2089e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
project.js
app/assets/javascripts/project.js
+2
-2
projects_controller.rb
app/controllers/projects_controller.rb
+3
-2
No files found.
app/assets/javascripts/project.js
View file @
f9750b49
...
...
@@ -94,8 +94,8 @@
link
.
className
=
'is-active'
;
}
link
.
textContent
=
ref
.
name
;
link
.
dataset
.
ref
=
ref
.
name
;
link
.
textContent
=
ref
;
link
.
dataset
.
ref
=
ref
;
li
.
appendChild
(
link
);
}
...
...
app/controllers/projects_controller.rb
View file @
f9750b49
...
...
@@ -267,14 +267,15 @@ class ProjectsController < Projects::ApplicationController
end
def
refs
branches
=
BranchesFinder
.
new
(
@repository
,
params
).
execute
branches
=
BranchesFinder
.
new
(
@repository
,
params
).
execute
.
map
(
&
:name
)
options
=
{
'Branches'
=>
branches
.
take
(
100
),
}
unless
@repository
.
tag_count
.
zero?
tags
=
TagsFinder
.
new
(
@repository
,
params
).
execute
tags
=
TagsFinder
.
new
(
@repository
,
params
).
execute
.
map
(
&
:name
)
options
[
'Tags'
]
=
tags
.
take
(
100
)
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