From: Lalit Khattar Date: Fri, 28 Feb 2014 10:06:07 +0000 (+0100) Subject: Bug 536171: Large Text Box should have maxlength and wrap => 1 in buglists X-Git-Tag: bugzilla-4.5.3~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60fb3b59ef0a2082b25e0d80c818b979991317bd;p=thirdparty%2Fbugzilla.git Bug 536171: Large Text Box should have maxlength and wrap => 1 in buglists r=LpSolit a=justdave --- diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index 276648b1cd..28142593bf 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -181,9 +181,11 @@ [% FOREACH column = displaycolumns %] - [% col_abbrev = abbrev.$column %] - + [% col_abbrev = abbrev.$column %] + [% IF col_abbrev.maxlength %] [% END %] @@ -206,6 +208,8 @@ [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%] + [% ELSIF bug_fields.$column.type == constants.FIELD_TYPE_TEXTAREA %] + [%- bug.$column.truncate(256, '...') FILTER html -%] [% ELSIF column == 'bug_file_loc' && is_safe_url(bug.bug_file_loc) %]