summaryrefslogtreecommitdiffstats
path: root/template/en/default/list
diff options
context:
space:
mode:
authorLalit Khattar <luckyk1592@gmail.com>2014-02-28 11:06:07 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-02-28 11:06:07 +0100
commit60fb3b59ef0a2082b25e0d80c818b979991317bd (patch)
tree45f064eaa66d65fc21dd2b0592bda590f45c50bf /template/en/default/list
parent316c3b707bc79f0430bdee67709937bca7a839a0 (diff)
downloadbugzilla-60fb3b59ef0a2082b25e0d80c818b979991317bd.tar.gz
bugzilla-60fb3b59ef0a2082b25e0d80c818b979991317bd.tar.xz
Bug 536171: Large Text Box should have maxlength and wrap => 1 in buglists
r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/list')
-rw-r--r--template/en/default/list/table.html.tmpl10
1 files changed, 7 insertions, 3 deletions
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 @@
</td>
[% FOREACH column = displaycolumns %]
- [% col_abbrev = abbrev.$column %]
- <td [% 'class="nowrap"' IF NOT col_abbrev.wrap %]
- class="bz_[% column FILTER css_class_quote %]_column">
+ [% col_abbrev = abbrev.$column %]
+ <td class="bz_[% column FILTER css_class_quote %]_column
+ [%~ ' nowrap' UNLESS col_abbrev.wrap
+ OR bug_fields.$column.type == constants.FIELD_TYPE_FREETEXT
+ OR bug_fields.$column.type == constants.FIELD_TYPE_TEXTAREA %]">
[% IF col_abbrev.maxlength %]
<span title="[%- display_value(column, bug.$column) FILTER html %]">
[% END %]
@@ -206,6 +208,8 @@
<a href="show_bug.cgi?id=[% bug.$column FILTER html %]">
[%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
</a>
+ [% 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) %]
<a href="[% bug.bug_file_loc FILTER html %]" target="_blank"
title="[% bug.bug_file_loc FILTER html %]">