diff options
author | bugreport%peshkin.net <> | 2002-12-09 08:57:17 +0100 |
---|---|---|
committer | bugreport%peshkin.net <> | 2002-12-09 08:57:17 +0100 |
commit | 2e6c635d3fb541baa8ed376c2c09a99bc6844dcb (patch) | |
tree | c4e9108e81157f9a95395c745521d662a49a60bc /template/en/default/list | |
parent | e008fbf65bc6c7fd9df37710d08167c2677a9aa1 (diff) | |
download | bugzilla-2e6c635d3fb541baa8ed376c2c09a99bc6844dcb.tar.gz bugzilla-2e6c635d3fb541baa8ed376c2c09a99bc6844dcb.tar.xz |
Bug 159627 quips should be editable and deleteable using the web interface
patch by burnus
r=timeless,a=justdave
Diffstat (limited to 'template/en/default/list')
-rw-r--r-- | template/en/default/list/quips.html.tmpl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl index f83f08128..ccb5208b7 100644 --- a/template/en/default/list/quips.html.tmpl +++ b/template/en/default/list/quips.html.tmpl @@ -39,6 +39,14 @@ </p> [% END %] +[% IF deleted_quip %] + <p> + <font color="red"> + The quip '<tt>[% deleted_quip FILTER html %]</tt>' has been deleted. + </font> + </p> +[% END %] + <p> 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 @@ -62,11 +70,38 @@ <li>[% quip FILTER html %]</li> [% END %] </ul> +[% ELSIF edit_quips %] + <h2>Edit existing quips:</h2> + <table border="1"> + <thead><tr> + <th>Action</th> + <th>User</th> + <th>Quip</th> + </tr></thead><tbody> + [% FOREACH quipid = quipids %] + <tr> + <td> + <a href="quips.cgi?action=delete&quipid=[% quipid FILTER uri%]"> + Delete + </a> + </td> + <td> + [% userid = quips.$quipid.userid %] + [% users.$userid FILTER html %] + [% "Unknown" IF NOT users.$userid %] + </td> + <td>[% quips.$quipid.quip FILTER html %]</td> + </tr> + [% END %] + </tbody></table> [% ELSE %] <p> Those who like their wisdom in large doses can <a href="quips.cgi?action=show">view the whole quip list</a>. </p> + [% IF UserInGroup('admin') %] + <p><a href="quips.cgi?action=edit">Edit</a> the quip list.</p> + [% END %] [% END %] [% PROCESS global/footer.html.tmpl %] |