From ab5067bb0995cce2afe51803b5f005cc9f994416 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Fri, 11 Mar 2005 00:21:33 +0000 Subject: Bug 41972 : Per-user pref to turn quips off Patch by Shane H. W. Travis r=mkanat a=justdave --- template/en/default/list/list.html.tmpl | 2 +- template/en/default/list/quips.html.tmpl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'template/en/default/list') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 919c9b21c..e0a5a2b93 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -57,7 +57,7 @@

[% query FILTER html %]

[% END %] - [% IF Param('enablequips') != 'off' %] + [% IF user.settings.display_quips.value == 'on' %] [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %] [% quip FILTER html %] [% END %] diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl index f5f22edd1..c43822aa1 100644 --- a/template/en/default/list/quips.html.tmpl +++ b/template/en/default/list/quips.html.tmpl @@ -37,7 +37,7 @@

Your quip '[% added_quip FILTER html %]' has been added. - [% IF Param("enablequips") == "approved" AND !user.groups.admin %] + [% IF Param("quip_list_entry_control") == "moderated" AND !user.groups.admin %] It will be used as soon as it gets approved. [% END %] @@ -60,7 +60,7 @@ [% terms.Bugzilla %] will pick a random quip for the headline on each [% terms.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 !user.groups.admin %] + [% IF Param("quip_list_entry_control") == "moderated" AND !user.groups.admin %] Note that your quip has to be approved before it is used. [% END %]

@@ -88,8 +88,8 @@

Edit existing quips:

Note: Only approved quips will be shown. - If enablequips is set to on, entered quips are automatically - approved. + If the parameter 'quip_list_entry_control' is set to open, + entered quips are automatically approved.

-- cgit v1.2.3-24-g4f1b