Use issue css classes in issue titles

This commit is contained in:
Alexander Meindl 2018-08-31 12:45:48 +02:00
parent 1436f89228
commit 826d1912c7

View File

@ -3,8 +3,13 @@ module Additionals
module Helpers
def additionals_list_title(options)
title = []
title << link_to(h("#{options[:issue].subject} ##{options[:issue].id}"), issue_path(options[:issue])) if options[:issue]
title << avatar(options[:user], size: 50) + ' ' + options[:user].name if options[:user]
if options[:issue]
title << link_to(h("#{options[:issue].subject} ##{options[:issue].id}"),
issue_path(options[:issue]),
class: options[:issue].css_classes)
elsif options[:user]
title << avatar(options[:user], size: 50) + ' ' + options[:user].name
end
title << options[:name] if options[:name]
title << h(options[:query].name) if options[:query] && !options[:query].new_record?
safe_join(title, Additionals::LIST_SEPARATOR)