diff options
author | gerv%gerv.net <> | 2002-08-20 06:17:18 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-08-20 06:17:18 +0200 |
commit | 9c0a26d3a5a35788694f5f284c69b995a3298c86 (patch) | |
tree | 15cc4cfb1e5e9fb7bcc3898530776f44c7b52492 /template/en/default/attachment | |
parent | e6fff23fcd99b09511b62c4db4eca658fe5257c4 (diff) | |
download | bugzilla-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar.gz bugzilla-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar.xz |
Bug 143286 - Add support for Insiders, Private comments, Private Attachments. Patch by bugreport@peshkin.net; r=gerv.
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r-- | template/en/default/attachment/create.html.tmpl | 17 | ||||
-rw-r--r-- | template/en/default/attachment/edit.html.tmpl | 3 | ||||
-rw-r--r-- | template/en/default/attachment/list.html.tmpl | 6 |
3 files changed, 22 insertions, 4 deletions
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;"> </td> </tr> + [% IF (Param("insidergroup") && UserInGroup(Param("insidergroup"))) %] + <tr> + <th>Privacy:</th> + <td> + <em>If the attachment is private, check the box below.</em><br> + <input type="checkbox" name="isprivate" id="isprivate" value="1"> + <label for="isprivate">Private</label> + </td> + </tr> + [% END %] <tr> <th>Obsoletes:</th> <td> <em>(optional) Check each existing attachment made obsolete by your new attachment.</em><br> [% IF attachments.size %] [% FOREACH attachment = attachments %] - <input type="checkbox" id="[% attachment.id %]" + [% IF ((attachment.isprivate == 0) || (Param("insidergroup") + && UserInGroup(Param("insidergroup")))) %] + <input type="checkbox" id="[% attachment.id %]" name="obsolete" value="[% attachment.id %]"> - <a href="attachment.cgi?id=[% attachment.id %]&action=edit">[% attachment.id %]: [% attachment.description FILTER html %]</a><br> + <a href="attachment.cgi?id=[% attachment.id %]&action=edit">[% attachment.id %]: [% attachment.description FILTER html %]</a><br> + [% 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 @@ <input type="checkbox" id="isobsolete" name="isobsolete" value="1" [% 'checked="checked"' IF isobsolete %]> <label for="isobsolete">obsolete</label><br> + [% IF (Param("insidergroup") && UserInGroup(Param("insidergroup"))) %] + <input type="checkbox" name="isprivate" value="1"[% " checked" IF isprivate %]> private<br><br> + [% END %] [% IF statusdefs.size %] <b>Status:</b><br> 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 @@ <th bgcolor="#cccccc" align="left">Status</th> <th bgcolor="#cccccc" align="left">Actions</th> </tr> - + [% canseeprivate = !Param("insidergroup") || UserInGroup(Param("insidergroup")) %] [% FOREACH attachment = attachments %] - <tr> + [% IF !attachment.isprivate || canseeprivate %] + <tr [% "class=\"bz_private\"" IF attachment.isprivate %]> <td valign="top"> [% IF attachment.isobsolete %] <strike><a href="attachment.cgi?id=[% attachment.attachid %]&action=view">[% attachment.description FILTER html %]</a></strike> @@ -67,6 +68,7 @@ [% END %] </td> </tr> + [% END %] [% END %] <tr> |