From 9c0a26d3a5a35788694f5f284c69b995a3298c86 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Tue, 20 Aug 2002 04:17:18 +0000 Subject: Bug 143286 - Add support for Insiders, Private comments, Private Attachments. Patch by bugreport@peshkin.net; r=gerv. --- template/en/default/attachment/create.html.tmpl | 17 +++++++++++++++-- template/en/default/attachment/edit.html.tmpl | 3 +++ template/en/default/attachment/list.html.tmpl | 6 ++++-- 3 files changed, 22 insertions(+), 4 deletions(-) (limited to 'template/en/default/attachment') diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index a80708ee3..1c00146e5 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -94,15 +94,28 @@ onchange="if (this.value) this.form.contenttypemethod[2].checked = true;"> + [% IF (Param("insidergroup") && UserInGroup(Param("insidergroup"))) %] + + Privacy: + + If the attachment is private, check the box below.
+ + + + + [% END %] Obsoletes: (optional) Check each existing attachment made obsolete by your new attachment.
[% IF attachments.size %] [% FOREACH attachment = attachments %] - - [% attachment.id %]: [% attachment.description FILTER html %]
+ [% attachment.id %]: [% attachment.description FILTER html %]
+ [% END %] [% END %] [% ELSE %] [no attachments can be made obsolete] diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index 5d01d2898..c9bc7c1cd 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -163,6 +163,9 @@
+ [% IF (Param("insidergroup") && UserInGroup(Param("insidergroup"))) %] + private

+ [% END %] [% IF statusdefs.size %] Status:
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index bc25c5721..e7aa8b0ef 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -28,9 +28,10 @@ Status Actions - + [% canseeprivate = !Param("insidergroup") || UserInGroup(Param("insidergroup")) %] [% FOREACH attachment = attachments %] - + [% IF !attachment.isprivate || canseeprivate %] + [% IF attachment.isobsolete %] [% attachment.description FILTER html %] @@ -67,6 +68,7 @@ [% END %] + [% END %] [% END %] -- cgit v1.2.3-24-g4f1b