summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-04 10:44:51 +0100
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-04-12 13:10:43 -0400
commit6416f8eab17556871984118c2dde04714a52bdf6 (patch)
treed8c0c02fb664bf8f2edc421d2282547795c8056d /app/helpers
parent14b124faca9518167798069aaaedbcc67994dd2f (diff)
downloadgitlab-ce-6416f8eab17556871984118c2dde04714a52bdf6.tar.gz
Updated based on Ruby feedback
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 83ebc124171..cc411da459f 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -66,10 +66,10 @@ module ProjectsHelper
end
project_link = link_to simple_sanitize(project.name), project_path(project), { class: "project-item-select-holder" }
- project_link += icon "chevron-down", class: "dropdown-toggle-caret js-projects-dropdown-toggle", data: { target: ".header-content", toggle: "dropdown" } if current_user
+ project_link << icon("chevron-down", class: "dropdown-toggle-caret js-projects-dropdown-toggle", data: { target: ".js-dropdown-menu-projects", toggle: "dropdown" }) if current_user
full_title = namespace_link + ' / ' + project_link
- full_title += ' &middot; '.html_safe + link_to(simple_sanitize(name), url) if name
+ full_title << ' &middot; '.html_safe + link_to(simple_sanitize(name), url) if name
full_title
end