@@ -72,11 +72,11 module ApplicationHelper | |||||
72 | subject = nil |
|
72 | subject = nil | |
73 | text = options[:tracker] == false ? "##{issue.id}" : "#{issue.tracker} ##{issue.id}" |
|
73 | text = options[:tracker] == false ? "##{issue.id}" : "#{issue.tracker} ##{issue.id}" | |
74 | if options[:subject] == false |
|
74 | if options[:subject] == false | |
75 |
title = |
|
75 | title = issue.subject.truncate(60) | |
76 | else |
|
76 | else | |
77 | subject = issue.subject |
|
77 | subject = issue.subject | |
78 | if options[:truncate] |
|
78 | if truncate_length = options[:truncate] | |
79 |
subject = truncate( |
|
79 | subject = subject.truncate(truncate_length) | |
80 | end |
|
80 | end | |
81 | end |
|
81 | end | |
82 | only_path = options[:only_path].nil? ? true : options[:only_path] |
|
82 | only_path = options[:only_path].nil? ? true : options[:only_path] |
General Comments 0
You need to be logged in to leave comments.
Login now