From c11aacea6a5da8f9c891d169e164ffbf76724aee Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 2 Sep 2011 12:53:28 +0800 Subject: Bug 682822: Hide 'obsolete attachments' section when there are none to display r=LpSolit, a=LpSolit --- template/en/default/attachment/create.html.tmpl | 26 +++++++++++-------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'template') 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: %] - - Obsoletes: - - (optional) Check each existing attachment made obsolete by your new attachment.
- [% IF attachments.size %] + [% IF attachments.size %] + + Obsoletes: + + (optional) Check each existing attachment made obsolete by your new attachment.
[% FOREACH attachment = attachments %] - [% IF ((attachment.isprivate == 0) || user.is_insider) %] - - [% attachment.id %]: [% attachment.description FILTER html %]
- [% END %] + + [% attachment.id %]: [% attachment.description FILTER html %]
[% END %] - [% ELSE %] - [no attachments can be made obsolete] - [% END %] - - + + + [% END %] [% IF (user.id != bug.assigned_to.id) AND user.in_group("editbugs", bug.product_id) %] -- cgit v1.2.3-24-g4f1b