show account and project name in task request details for BIG admin

This commit is contained in:
bilal
2020-06-09 17:16:19 +02:00
parent 9d7e2c044a
commit 00d114c928
3 changed files with 10 additions and 2 deletions

View File

@@ -7,8 +7,8 @@ module DescriptionListHelper
safe_join(tags)
end
def description_list_pair_for(record, attribute, append: nil)
term = translation_for(record, attribute)
def description_list_pair_for(record, attribute, append: nil, custom_label: nil)
term = custom_label.nil? ? translation_for(record, attribute) : custom_label
definition = record.send(attribute)
description_list_pair(term, definition, append: append)