1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Gervase Markham <gerv@gerv.net>
23
# added_quip: string. Defined if the CGI added a quip data before
24
# displaying anything; if defined, its value is that quip.
25
# show_quips: boolean. True if we are showing the entire quip list.
26
# quips: list of strings. Defined if and only if show_quips is true.
30
[% PROCESS global/variables.none.tmpl %]
32
[% PROCESS global/header.html.tmpl
33
title = "$terms.Bugzilla Quip System"
34
header = "Add your own clever headline"
40
Your quip '<tt>[% added_quip FILTER html %]</tt>' has been added.
41
[% IF Param("quip_list_entry_control") == "moderated" AND !user.groups.admin %]
42
It will be used as soon as it gets approved.
51
The quip '<tt>[% deleted_quip FILTER html %]</tt>' has been deleted.
56
[% IF approved or unapproved %]
57
<p>[% approved.size %] quips approved and [% unapproved.size %] quips unapproved</p>
62
[% terms.Bugzilla %] will pick a random quip for the headline on each
66
[% IF Param("quip_list_entry_control") != "closed" %]
68
You can extend the quip list. Type in something clever or funny or boring
69
(but not obscene or offensive, please) and bonk on the button.
70
[% IF Param("quip_list_entry_control") == "moderated" AND !user.groups.admin %]
71
Note that your quip has to be approved before it is used.
75
<form method="post" action="quips.cgi">
76
<input type="hidden" name="action" value="add">
77
<input size="80" name="quip">
79
<input type="submit" id="add" value="Add This Quip">
83
<p>No new entries may be submitted at this time.
88
[% IF !user.in_group('admin') %]
93
[% FOREACH quipid = quipids %]
94
[% NEXT IF NOT quips.$quipid.approved %]
95
<li>[% quips.$quipid.quip FILTER html %]</li>
99
<h2>Edit existing quips:</h2>
101
<strong>Note:</strong> Only approved quips will be shown.
102
If the parameter 'quip_list_entry_control' is set to <q>open</q>,
103
entered quips are automatically approved.
105
<form name="editform" method="post" action="quips.cgi">
106
<input type="hidden" name="action" value="approve">
114
[% FOREACH quipid = quipids %]
116
<td>[% quips.$quipid.quip FILTER html %]</td>
118
[% userid = quips.$quipid.userid %]
119
[% users.$userid FILTER html %]
120
[% "Unknown" IF NOT users.$userid %]
123
<a href="quips.cgi?action=delete&quipid=[% quipid FILTER url_quote %]">
128
<input type="checkbox" name="quipid_[% quipid FILTER html %]"
129
id="quipid_[% quipid FILTER html %]"
130
[%- ' checked="checked"' IF quips.$quipid.approved %]>
136
<script type="text/javascript"><!--
137
var numelements = document.forms.editform.elements.length;
138
function SetCheckboxes(value) {
140
for (var i=0 ; i<numelements ; i++) {
141
item = document.forms.editform.elements[i];
142
item.checked = value;
145
document.write(' <input type="button" name="uncheck_all" '
146
+'value="Uncheck All" onclick="SetCheckboxes(false);">');
147
document.write(' <input type="button" name="check_all" '
148
+'value="Check All" onclick="SetCheckboxes(true);">');
151
<input type="submit" id="update" value="Update">
157
Those who like their wisdom in large doses can
158
<a href="quips.cgi?action=show">view
159
[% IF user.in_group('admin') %]
162
the whole quip list</a>.
166
[% PROCESS global/footer.html.tmpl %]