summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2011-09-02 06:53:28 +0200
committerByron Jones <bjones@mozilla.com>2011-09-02 06:53:28 +0200
commitc11aacea6a5da8f9c891d169e164ffbf76724aee (patch)
treea7297d0ae9bc6c3007edd044ce214484dcd5505e /template
parent7a9a4fdc72fa194e1921ee157ae7f79507540f1c (diff)
downloadbugzilla-c11aacea6a5da8f9c891d169e164ffbf76724aee.tar.gz
bugzilla-c11aacea6a5da8f9c891d169e164ffbf76724aee.tar.xz
Bug 682822: Hide 'obsolete attachments' section when there are none to display
r=LpSolit, a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/attachment/create.html.tmpl26
1 files changed, 11 insertions, 15 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index 863d83ad0..6be527a78 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -56,23 +56,19 @@ TUI_hide_default('attachment_text_field');
[% PROCESS attachment/createformcontents.html.tmpl %]
[%# Additional fields for attachments on existing bugs: %]
- <tr>
- <th>Obsoletes:</th>
- <td>
- <em>(optional) Check each existing attachment made obsolete by your new attachment.</em><br>
- [% IF attachments.size %]
+ [% IF attachments.size %]
+ <tr>
+ <th>Obsoletes:</th>
+ <td>
+ <em>(optional) Check each existing attachment made obsolete by your new attachment.</em><br>
[% FOREACH attachment = attachments %]
- [% IF ((attachment.isprivate == 0) || user.is_insider) %]
- <input type="checkbox" id="[% attachment.id %]"
- name="obsolete" value="[% attachment.id %]">
- <a href="attachment.cgi?id=[% attachment.id %]&amp;action=edit">[% attachment.id %]: [% attachment.description FILTER html %]</a><br>
- [% END %]
+ <input type="checkbox" id="[% attachment.id %]"
+ name="obsolete" value="[% attachment.id %]">
+ <a href="attachment.cgi?id=[% attachment.id %]&amp;action=edit">[% attachment.id %]: [% attachment.description FILTER html %]</a><br>
[% END %]
- [% ELSE %]
- [no attachments can be made obsolete]
- [% END %]
- </td>
- </tr>
+ </td>
+ </tr>
+ [% END %]
[% IF (user.id != bug.assigned_to.id) AND user.in_group("editbugs", bug.product_id) %]
<tr>