Better display of textareas in bug list

beta
Vitaliy Filippov 2018-05-18 15:51:27 +03:00
parent 94d624b036
commit 861ce067d9
1 changed files with 6 additions and 1 deletions

View File

@ -225,6 +225,10 @@
[% ELSIF field_obj.type == constants.FIELD_TYPE_NUMERIC %]
[%# Remove trailing zeros %]
[% bug.$column.replace('((\.\d*[1-9])|\.)0+$', '$2') %]
[% ELSIF field_obj.type == constants.FIELD_TYPE_TEXTAREA ||
field_obj.type == constants.FIELD_TYPE_EAV_TEXTAREA %]
[%- v = bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) -%]
[%- v | quoteUrls(bug.bug_id) | wrap_comment -%]
[% ELSIF column == 'work_time' ||
column == 'remaining_time' ||
column == 'estimated_time' ||
@ -267,7 +271,8 @@
[%- bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%]
</a>
[% ELSE %]
[%- bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%]
[%- v = bug.$column.truncate(abbrev.$column.maxlength, abbrev.$column.ellipsis) FILTER html -%]
[%- v.replace("\n", '<br>') -%]
[% END %]
</td>
[% END %]