]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/ElseAlignment in ApplicationHelper#parse_redmine_links
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 17:47:51 +0000 (17:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 17:47:51 +0000 (17:47 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18665 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 0ad9fc99f7dbe967837479250890e3537d3a0004..223083d6f60de4ecfdb42b3d14ee49ba26a77be9 100644 (file)
@@ -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