Commit 60fb3b59 authored by Lalit Khattar's avatar Lalit Khattar Committed by Frédéric Buclin

Bug 536171: Large Text Box should have maxlength and wrap => 1 in buglists

r=LpSolit a=justdave
parent 316c3b70
...@@ -181,9 +181,11 @@ ...@@ -181,9 +181,11 @@
</td> </td>
[% FOREACH column = displaycolumns %] [% FOREACH column = displaycolumns %]
[% col_abbrev = abbrev.$column %] [% col_abbrev = abbrev.$column %]
<td [% 'class="nowrap"' IF NOT col_abbrev.wrap %] <td class="bz_[% column FILTER css_class_quote %]_column
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 %] [% IF col_abbrev.maxlength %]
<span title="[%- display_value(column, bug.$column) FILTER html %]"> <span title="[%- display_value(column, bug.$column) FILTER html %]">
[% END %] [% END %]
...@@ -206,6 +208,8 @@ ...@@ -206,6 +208,8 @@
<a href="show_bug.cgi?id=[% bug.$column FILTER html %]"> <a href="show_bug.cgi?id=[% bug.$column FILTER html %]">
[%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%] [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
</a> </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) %] [% ELSIF column == 'bug_file_loc' && is_safe_url(bug.bug_file_loc) %]
<a href="[% bug.bug_file_loc FILTER html %]" target="_blank" <a href="[% bug.bug_file_loc FILTER html %]" target="_blank"
title="[% bug.bug_file_loc FILTER html %]"> title="[% bug.bug_file_loc FILTER html %]">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment