diff options
author | gerv%gerv.net <> | 2003-01-06 16:53:11 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2003-01-06 16:53:11 +0100 |
commit | ef85a567fdb1c5d58223902316351d57f062897d (patch) | |
tree | 15ce0756f457f0d78ad97a7fa1dd973831872557 /template | |
parent | ed5513d9d67a8b789cfa20e29316cf3d025df0d5 (diff) | |
download | bugzilla-ef85a567fdb1c5d58223902316351d57f062897d.tar.gz bugzilla-ef85a567fdb1c5d58223902316351d57f062897d.tar.xz |
Bug 187837 - Unify showing and editing of quips. Patch by gerv; r=timeless, a=justdave.
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/list/quips.html.tmpl | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl index ccb5208b7..c178c5838 100644 --- a/template/en/default/list/quips.html.tmpl +++ b/template/en/default/list/quips.html.tmpl @@ -62,46 +62,51 @@ </form> [% IF show_quips %] - <h2> - Existing quips: - </h2> - <ul> - [% FOREACH quip = quips %] - <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> + [% IF !UserInGroup('admin') %] + <h2> + Existing quips: + </h2> + <ul> + [% FOREACH quip = quips %] + <li>[% quip FILTER html %]</li> + [% END %] + </ul> + [% ELSE %] + <h2>Edit existing quips:</h2> + <table border="1"> + <thead><tr> + <th>Quip</th> + <th>Author</th> + <th>Action</th> + </tr></thead><tbody> + [% FOREACH quipid = quipids %] + <tr> + <td>[% quips.$quipid.quip FILTER html %]</td> + <td> + [% userid = quips.$quipid.userid %] + [% users.$userid FILTER html %] + [% "Unknown" IF NOT users.$userid %] + </td> + <td> + <a href="quips.cgi?action=delete&quipid=[% quipid FILTER uri%]"> + Delete + </a> + </td> + </tr> + [% END %] + </tbody> + </table> + <br> + [% END %] [% ELSE %] <p> Those who like their wisdom in large doses can - <a href="quips.cgi?action=show">view the whole quip list</a>. + <a href="quips.cgi?action=show">view + [% IF UserInGroup('admin') %] + and edit + [% END %] + 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 %] |