summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:05:38 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:05:38 -0500
commit12eb056b33e1f01a63c4fcee408c9ac0d96c6b5e (patch)
tree988f9eb2099e98141844c205f553f13203cbc0ff /templates
parentf8c306a21b2d7b137fbc9245079d2db8b75366e1 (diff)
parent9b436a0347e28c52a0d669be64e259b3d0323815 (diff)
Merge branch 'master' into po
Diffstat (limited to 'templates')
-rw-r--r--templates/comment.tmpl8
-rw-r--r--templates/commentmoderation.tmpl29
2 files changed, 36 insertions, 1 deletions
diff --git a/templates/comment.tmpl b/templates/comment.tmpl
index 582efccb8..1b9064ea0 100644
--- a/templates/comment.tmpl
+++ b/templates/comment.tmpl
@@ -1,6 +1,12 @@
<div class="comment" id="<TMPL_VAR NAME=INLINEPAGE>">
-<div class="comment-subject"><a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a></div>
+<div class="comment-subject">
+<TMPL_IF PERMALINK>
+<a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a>
+<TMPL_ELSE>
+<TMPL_VAR TITLE>
+</TMPL_IF>
+</div>
<div class="inlinecontent">
<TMPL_VAR CONTENT>
diff --git a/templates/commentmoderation.tmpl b/templates/commentmoderation.tmpl
new file mode 100644
index 000000000..e91d3146d
--- /dev/null
+++ b/templates/commentmoderation.tmpl
@@ -0,0 +1,29 @@
+<TMPL_IF NAME="COMMENTS">
+<br />
+<form action="<TMPL_VAR CGIURL>" method="post">
+<input type="hidden" name="do" value="commentmoderation" />
+<input type="hidden" name="sid" value="<TMPL_VAR SID>" />
+<input type="submit" value="Submit" />
+<input type="checkbox" name="rejectalldefer" value="1" />Reject
+all comments marked <em>Defer</em>
+<br />
+<TMPL_LOOP NAME="COMMENTS">
+<div>
+<div>
+<TMPL_VAR VIEW>
+</div>
+<input type="radio" value="Defer" name="<TMPL_VAR ID>" checked />Defer
+<input type="radio" value="Accept" name="<TMPL_VAR ID>" />Accept
+<input type="radio" value="Reject" name="<TMPL_VAR ID>" />Reject
+</div>
+<br />
+</TMPL_LOOP>
+<input type="submit" value="Submit" />
+<input type="checkbox" name="rejectalldefer" value="1" />Reject
+all comments marked <em>Defer</em>
+</form>
+<TMPL_ELSE>
+<p>
+No comments need moderation at this time.
+</p>
+</TMPL_IF>