summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-01-15 11:43:49 +0000
committerPhil Hughes <me@iamphill.com>2016-01-30 16:01:49 +0000
commit09dc9bd5686501b2c9847896fee9713cf7cf4aea (patch)
treeaa323752b0848eb05e373dc975533958349f0c58
parente79b5ff9d65b5a872bfc69649441d6262ac76b4d (diff)
downloadgitlab-ce-09dc9bd5686501b2c9847896fee9713cf7cf4aea.tar.gz
rubocop fixes
-rw-r--r--app/helpers/projects_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 705d1e786f4..e7e472cbb5b 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -45,7 +45,6 @@ module ProjectsHelper
end
def project_title(project, name = nil, url = nil)
- project_id = project.id
namespace_link =
if project.group
link_to(simple_sanitize(project.group.name), group_path(project.group))
@@ -54,9 +53,9 @@ module ProjectsHelper
link_to(simple_sanitize(owner.name), user_path(owner))
end
- project_link = link_to project_path(project), {class: "project-item-select-holder #{"js-projects-dropdown-toggle" if current_user}"} do
+ project_link = link_to project_path(project), { class: "project-item-select-holder #{"js-projects-dropdown-toggle" if current_user}" } do
link_output = simple_sanitize(project.name)
- link_output += content_tag :span, nil, {class: "fa fa-chevron-down dropdown-toggle-caret"} if current_user
+ link_output += content_tag :span, nil, { class: "fa fa-chevron-down dropdown-toggle-caret" } if current_user
link_output += project_select_tag :project_path, class: "project-item-select js-projects-dropdown", data: { include_groups: false } if current_user