mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 02:06:04 +01:00
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
This commit is contained in:
@@ -1030,17 +1030,18 @@ module ApplicationHelper
|
|||||||
issue = Issue.visible.find_by_id(oid)
|
issue = Issue.visible.find_by_id(oid)
|
||||||
anchor = comment_id ? "note-#{comment_id}" : nil
|
anchor = comment_id ? "note-#{comment_id}" : nil
|
||||||
url = issue_url(issue, :only_path => only_path, :anchor => anchor)
|
url = issue_url(issue, :only_path => only_path, :anchor => anchor)
|
||||||
link = if sep == '##'
|
link =
|
||||||
link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}",
|
if sep == '##'
|
||||||
url,
|
link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}",
|
||||||
:class => issue.css_classes,
|
url,
|
||||||
:title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") + ": #{issue.subject}"
|
:class => issue.css_classes,
|
||||||
else
|
:title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") + ": #{issue.subject}"
|
||||||
link_to("##{oid}#{comment_suffix}",
|
else
|
||||||
url,
|
link_to("##{oid}#{comment_suffix}",
|
||||||
:class => issue.css_classes,
|
url,
|
||||||
:title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})")
|
:class => issue.css_classes,
|
||||||
end
|
:title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})")
|
||||||
|
end
|
||||||
elsif identifier == 'note'
|
elsif identifier == 'note'
|
||||||
link = link_to("#note-#{comment_id}", "#note-#{comment_id}")
|
link = link_to("#note-#{comment_id}", "#note-#{comment_id}")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user