diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-22 18:52:17 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-22 18:52:17 +0100 |
commit | dcf596791d3afc7ad6d54b038965b758669d9843 (patch) | |
tree | 5698bea64946092701b4e1dac04c7114f10c7e1b /templates | |
parent | 2bbecbc7e755a35a587075584c442440bece78f0 (diff) |
Add a comment moderation page.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/article.html | 10 | ||||
-rw-r--r-- | templates/comment.html | 9 | ||||
-rw-r--r-- | templates/comment_moderation_page.html | 28 |
3 files changed, 38 insertions, 9 deletions
diff --git a/templates/article.html b/templates/article.html index bd8b10a..2df9654 100644 --- a/templates/article.html +++ b/templates/article.html @@ -44,15 +44,7 @@ <h2>{comments-heading|html}</h2> {.repeated section comments} - <div class="comment"> - <div class="comment-header"> - {publishing-date|html-human-date} - <a rel="nofollow" {.section author-link}href="{@|html-attr-value}"{.end}>{.section author}{@|html}{.or}{generic-commenter-name|html}{.end}</a>: - </div> - <div class="comment-body"> - {body} - </div> - </div> + {@|comment-html} {.end} {.section comment-submission} diff --git a/templates/comment.html b/templates/comment.html new file mode 100644 index 0000000..dbcb759 --- /dev/null +++ b/templates/comment.html @@ -0,0 +1,9 @@ +<div class="comment"> + <div class="comment-header"> + {publishing-date|html-human-date} + <a rel="nofollow" {.section author-link}href="{@|html-attr-value}"{.end}>{.section author}{@|html}{.or}{generic-commenter-name|html}{.end}</a>: + </div> + <div class="comment-body"> + {body} + </div> +</div> diff --git a/templates/comment_moderation_page.html b/templates/comment_moderation_page.html new file mode 100644 index 0000000..3e13bd9 --- /dev/null +++ b/templates/comment_moderation_page.html @@ -0,0 +1,28 @@ +{.section head} +<link rel="stylesheet" type="text/css" + href="{root|html-attr-value}style/journal.css" /> +{.end} + +{.section body} + <h1 id="main-title">{site-name|html}</h1> + <div id="main-subtitle">{title}</div> + + {.repeated section comments} + <div class="comment-for-moderation" style="border: 1px solid #444; margin: 10px; padding: 5px;"> + <form id="editing-form" method="POST" accept-charset="UTF-8"> + <input type="hidden" name="revision-id" value="{revision-id}" /> + <div> + <input type="submit" name="mark-as-spam" value="{spam-label|html-attr-value}" /> | + <input type="submit" name="reject" value="{reject-label|html-attr-value}" /> | + <input type="submit" name="approve" value="{approve-label|html-attr-value}" /> + </div> + </form> + + <p> + Comment on article + <a href="{article.link|html-attr-value}">“{article.title}”</a>: + </p> + {@|comment-html} + </div> + {.end} +{.end} |