From 039f13d6508ae4c15dbeff2e45a430dda964afad Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 14 Oct 2019 17:47:51 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/ElseAlignment in ApplicationHelper#parse_redmine_links git-svn-id: http://svn.redmine.org/redmine/trunk@18665 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0ad9fc99f..223083d6f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1030,17 +1030,18 @@ module ApplicationHelper issue = Issue.visible.find_by_id(oid) anchor = comment_id ? "note-#{comment_id}" : nil url = issue_url(issue, :only_path => only_path, :anchor => anchor) - link = if sep == '##' - link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}", - url, - :class => issue.css_classes, - :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") + ": #{issue.subject}" - else - link_to("##{oid}#{comment_suffix}", - url, - :class => issue.css_classes, - :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") - end + link = + if sep == '##' + link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}", + url, + :class => issue.css_classes, + :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") + ": #{issue.subject}" + else + link_to("##{oid}#{comment_suffix}", + url, + :class => issue.css_classes, + :title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") + end elsif identifier == 'note' link = link_to("#note-#{comment_id}", "#note-#{comment_id}") end -- 2.39.5