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
This commit is contained in:
@@ -1 +1 @@
|
||||
8937
|
||||
8938
|
||||
@@ -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 %]">
|
||||
|
||||
Reference in New Issue
Block a user