Skip to content

Commit

Permalink
New template to be used by both admin.pl and comments.pl for moderation
Browse files Browse the repository at this point in the history
  • Loading branch information
tvroom committed Sep 15, 2003
1 parent 3204444 commit 757b556
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions themes/slashcode/templates/moderation;misc;default
@@ -0,0 +1,41 @@
__section__
default
__description__
Template which determines output for moderation results.

* type = the name of the data element to retrieve
* reasons = the getReasons() hashref

Each data element may have any number of other variables, usually subject, sid, cid, reason, val, points.
__title__

__page__
misc
__lang__
en_US
__name__
moderation
__template__
[% SWITCH type;

# ALREADY MODERATED.
CASE "already moderated" %]
<LI>[% subject %]([% sid %]-[% cid %], <B>Already moderated</B>)</LI>
[%

# SCORE LIMIT.
CASE "score limit" %]
<LI>[% subject %] ([% sid %]-[% cid %], <B>Comment already at limit</B>)</LI>
[%

# (COMMENT SUCCESSFULLY) MODERATED.
CASE "moderated" %]
<LI>[% val %] ([% reasons.$reason.name %]) [% subject %] ([% sid %]-[% cid %],
<B>[% points %]</B> point[% points == 1 ? '' : 's' %] left)
</LI>
[% END %]
__seclev__
1000
__version__
$Id$

0 comments on commit 757b556

Please sign in to comment.