From 77b86e4c02e0057a573594afdd84ba15c643a4fc Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Wed, 15 Jan 2003 14:48:12 +0000 Subject: Bug 184309: Adds an optional disabled state to quips, which allows quips to be moderated if the admin so chooses. Patch by Tobias Burnus r=joel, a=justdave --- template/en/default/list/quips.html.tmpl | 91 +++++++++++++++++++++++--------- 1 file changed, 66 insertions(+), 25 deletions(-) (limited to 'template') diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl index c178c5838..4a6ef1ad5 100644 --- a/template/en/default/list/quips.html.tmpl +++ b/template/en/default/list/quips.html.tmpl @@ -35,6 +35,9 @@

Your quip '[% added_quip FILTER html %]' has been added. + [% IF Param("enablequips") == "approved" AND !UserInGroup('admin') %] + It will be used as soon as it gets approved. + [% END %]

[% END %] @@ -47,10 +50,17 @@

[% END %] +[% IF approved or unapproved %] +

[% approved.size %] quips approved and [% unapproved.size %] quips unapproved

+[% END %] +

Bugzilla will pick a random quip for the headline on each bug list, and you can extend the quip list. Type in something clever or funny or boring (but not obscene or offensive, please) and bonk on the button. + [% IF Param("enablequips") == "approved" AND !UserInGroup('admin') %] + Note that your quip has to be approved before it is used. + [% END %]

@@ -67,35 +77,66 @@ Existing quips: [% ELSE %]

Edit existing quips:

- - - - - - - [% FOREACH quipid = quipids %] - - - - - - [% END %] - -
QuipAuthorAction
[% quips.$quipid.quip FILTER html %] - [% userid = quips.$quipid.userid %] - [% users.$userid FILTER html %] - [% "Unknown" IF NOT users.$userid %] - - - Delete - -
+

+ Note: Only approved quips will be shown. + If enablequips is set to on, entered quips are automatically + approved. +

+ + + + + + + + + + [% FOREACH quipid = quipids %] + + + + + + + [% END %] + +
QuipAuthorActionApproved
[% quips.$quipid.quip FILTER html %] + [% userid = quips.$quipid.userid %] + [% users.$userid FILTER html %] + [% "Unknown" IF NOT users.$userid %] + + + Delete + + + +
+ + + +

[% END %] [% ELSE %] -- cgit v1.2.1