summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-11-09 10:58:47 +0100
committermyk%mozilla.org <>2002-11-09 10:58:47 +0100
commit8816b8cb98a7902b722c00cbed6e22b12f176e74 (patch)
treeb8548c08fa5472df8b22943bd4deda444863f56d /template/en/default/attachment
parentc39803cc45e621f01e0598c7fb875f5e494ebd14 (diff)
downloadbugzilla-8816b8cb98a7902b722c00cbed6e22b12f176e74.tar.gz
bugzilla-8816b8cb98a7902b722c00cbed6e22b12f176e74.tar.xz
Fix for bug 171505: shows disabled flags in the UI
r=bbaetz a=justdave
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/list.html.tmpl9
1 files changed, 3 insertions, 6 deletions
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl
index 59f749695..265803602 100644
--- a/template/en/default/attachment/list.html.tmpl
+++ b/template/en/default/attachment/list.html.tmpl
@@ -19,16 +19,13 @@
# Contributor(s): Myk Melez <myk@mozilla.org>
#%]
-[%# Whether or not to include flags. %]
-[% display_flags = num_attachment_flag_types > 0 %]
-
<br>
<table cellspacing="0" cellpadding="4" border="1">
<tr>
<th bgcolor="#cccccc" align="left">Attachment</th>
<th bgcolor="#cccccc" align="left">Type</th>
<th bgcolor="#cccccc" align="left">Created</th>
- [% IF display_flags %]
+ [% IF show_attachment_flags %]
<th bgcolor="#cccccc" align="left">Flags</th>
[% END %]
<th bgcolor="#cccccc" align="left">Actions</th>
@@ -55,7 +52,7 @@
<td valign="top">[% attachment.date %]</td>
- [% IF display_flags %]
+ [% IF show_attachment_flags %]
<td valign="top">
[% IF attachment.flags.size == 0 %]
<i>none</i>
@@ -85,7 +82,7 @@
[% END %]
<tr>
- <td colspan="[% display_flags ? 4 : 3 %]">
+ <td colspan="[% show_attachment_flags ? 4 : 3 %]">
<a href="attachment.cgi?bugid=[% bugid %]&amp;action=enter">Create a New Attachment</a> (proposed patch, testcase, etc.)
</td>
<td colspan="1">