From ef85a567fdb1c5d58223902316351d57f062897d Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Mon, 6 Jan 2003 15:53:11 +0000 Subject: Bug 187837 - Unify showing and editing of quips. Patch by gerv; r=timeless, a=justdave. --- template/en/default/list/quips.html.tmpl | 77 +++++++++++++++++--------------- 1 file changed, 41 insertions(+), 36 deletions(-) (limited to 'template/en/default') 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 @@ [% IF show_quips %] -

- Existing quips: -

- -[% ELSIF edit_quips %] -

Edit existing quips:

- - - - - - - [% FOREACH quipid = quipids %] - - - - - - [% END %] -
ActionUserQuip
- - Delete - - - [% userid = quips.$quipid.userid %] - [% users.$userid FILTER html %] - [% "Unknown" IF NOT users.$userid %] - [% quips.$quipid.quip FILTER html %]
+ [% IF !UserInGroup('admin') %] +

+ 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 + +
+
+ [% END %] [% ELSE %]

Those who like their wisdom in large doses can - view the whole quip list. + view + [% IF UserInGroup('admin') %] + and edit + [% END %] + the whole quip list.

- [% IF UserInGroup('admin') %] -

Edit the quip list.

- [% END %] [% END %] [% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b