BigW Consortium Gitlab

Commit f9750b49 by Phil Hughes Committed by Jacob Schatz

Changed how the data is returned - we only care about the branch/tag name

parent ba2089e0
...@@ -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);
} }
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment