From 68db96df779733605c710a1322e3383ca2f04a14 Mon Sep 17 00:00:00 2001 From: "bzrmirror%bugzilla.org" Date: Fri, 28 Feb 2014 10:15:52 +0000 Subject: [PATCH] Bug 536171: Large Text Box should have maxlength and wrap => 1 in buglists r=LpSolit a=justdave git-svn-id: svn://10.0.0.236/trunk@265262 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- .../bugzilla/template/en/default/list/table.html.tmpl | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index e09afe4341c..8845fdafde0 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8937 \ No newline at end of file +8938 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/template/en/default/list/table.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/list/table.html.tmpl index 276648b1cdb..28142593bf3 100644 --- a/mozilla/webtools/bugzilla/template/en/default/list/table.html.tmpl +++ b/mozilla/webtools/bugzilla/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) %]