summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorHiroyuki Sato <sathiroyuki@gmail.com>2018-06-20 12:34:58 +0900
committerHiroyuki Sato <sathiroyuki@gmail.com>2018-06-20 13:02:08 +0900
commit59154779d81c6359428af5f5cbdedbbd7ed32d5c (patch)
tree496220a2944594bbf53684074d77e202adcfcc65 /app/controllers/projects_controller.rb
parent7a633e08556c1de1f6bb35c85f24c844ed4ad5c8 (diff)
downloadgitlab-ce-59154779d81c6359428af5f5cbdedbbd7ed32d5c.tar.gz
The json keys of ref switcher should not be translatedhiroponz/gitlab-ce-48100-fix-branch-not-shown
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index a93b116c6fe..efb30ba4715 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -247,13 +247,13 @@ class ProjectsController < Projects::ApplicationController
if find_branches
branches = BranchesFinder.new(@repository, params).execute.take(100).map(&:name)
- options[s_('RefSwitcher|Branches')] = branches
+ options['Branches'] = branches
end
if find_tags && @repository.tag_count.nonzero?
tags = TagsFinder.new(@repository, params).execute.take(100).map(&:name)
- options[s_('RefSwitcher|Tags')] = tags
+ options['Tags'] = tags
end
# If reference is commit id - we should add it to branch/tag selectbox