From 60fb3b59ef0a2082b25e0d80c818b979991317bd Mon Sep 17 00:00:00 2001 From: Lalit Khattar Date: Fri, 28 Feb 2014 11:06:07 +0100 Subject: Bug 536171: Large Text Box should have maxlength and wrap => 1 in buglists r=LpSolit a=justdave --- template/en/default/list/table.html.tmpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'template/en') diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index 276648b1c..28142593b 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) %] -- cgit v1.2.3-24-g4f1b