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
Tatuya Kamada
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/project.js
app/assets/javascripts/project.js
+2
-2
app/controllers/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 @@
...
@@ -94,8 +94,8 @@
link
.
className
=
'
is-active
'
;
link
.
className
=
'
is-active
'
;
}
}
link
.
textContent
=
ref
.
name
;
link
.
textContent
=
ref
;
link
.
dataset
.
ref
=
ref
.
name
;
link
.
dataset
.
ref
=
ref
;
li
.
appendChild
(
link
);
li
.
appendChild
(
link
);
}
}
...
...
app/controllers/projects_controller.rb
View file @
f9750b49
...
@@ -267,14 +267,15 @@ class ProjectsController < Projects::ApplicationController
...
@@ -267,14 +267,15 @@ class ProjectsController < Projects::ApplicationController
end
end
def
refs
def
refs
branches
=
BranchesFinder
.
new
(
@repository
,
params
).
execute
branches
=
BranchesFinder
.
new
(
@repository
,
params
).
execute
.
map
(
&
:name
)
options
=
{
options
=
{
'Branches'
=>
branches
.
take
(
100
),
'Branches'
=>
branches
.
take
(
100
),
}
}
unless
@repository
.
tag_count
.
zero?
unless
@repository
.
tag_count
.
zero?
tags
=
TagsFinder
.
new
(
@repository
,
params
).
execute
tags
=
TagsFinder
.
new
(
@repository
,
params
).
execute
.
map
(
&
:name
)
options
[
'Tags'
]
=
tags
.
take
(
100
)
options
[
'Tags'
]
=
tags
.
take
(
100
)
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