Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New template to be used by both admin.pl and comments.pl for moderation
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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$ | ||
|