diff options
Diffstat (limited to 'quoins/templates/unapproved_comments.html')
-rw-r--r-- | quoins/templates/unapproved_comments.html | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/quoins/templates/unapproved_comments.html b/quoins/templates/unapproved_comments.html new file mode 100644 index 0000000..3a17c0e --- /dev/null +++ b/quoins/templates/unapproved_comments.html | |||
@@ -0,0 +1,78 @@ | |||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
3 | <html xmlns="http://www.w3.org/1999/xhtml" | ||
4 | xmlns:xi="http://www.w3.org/2001/XInclude" | ||
5 | xmlns:py="http://genshi.edgewall.org/"> | ||
6 | <xi:include href="master.html" /> | ||
7 | <xi:include href="blog-master.html" /> | ||
8 | |||
9 | <head> | ||
10 | <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> | ||
11 | <title>${blog.title}</title> | ||
12 | </head> | ||
13 | |||
14 | |||
15 | <body> | ||
16 | <div id="main"> | ||
17 | <div id="blog-content"> | ||
18 | |||
19 | <div class="blog-post"> | ||
20 | |||
21 | <div class="blog-comments" id="comments"> | ||
22 | <form action="${quoins.url('/approve_comments')}" method="post"> | ||
23 | |||
24 | <h3>${len(comments)} unapproved | ||
25 | <span py:if="len(comments)==1">comment</span> | ||
26 | <span py:if="len(comments)!=1">comments</span> | ||
27 | </h3> | ||
28 | |||
29 | <ol> | ||
30 | <li py:for="i, comment in enumerate(comments)" id="comment-${comment.id}"> | ||
31 | <p> Post: | ||
32 | <a href="${quoins.url('/post/%s'%comment.post.id)}">${comment.post.title}</a> | ||
33 | <br/> | ||
34 | <label> | ||
35 | <input type="radio" name="comment_${comment.id}" value="approve"/> | ||
36 | Approve | ||
37 | </label> | ||
38 | <label> | ||
39 | <input type="radio" name="comment_${comment.id}" value="delete"/> | ||
40 | Delete | ||
41 | </label> | ||
42 | <label> | ||
43 | <input type="radio" name="comment_${comment.id}" value="ignore"/> | ||
44 | Ignore | ||
45 | </label> | ||
46 | </p> | ||
47 | <p class="blog-comment-header"> | ||
48 | <span class="blog-comment-number"> | ||
49 | <a href="#comment-${comment.id}"> | ||
50 | [${i + 1}] | ||
51 | </a> | ||
52 | </span> | ||
53 | | ||
54 | <span class="blog-comment-user" py:if="comment.url"> | ||
55 | <a href="${comment.url}">${comment.name}</a> | ||
56 | </span> | ||
57 | <span class="blog-comment-user" py:if="not comment.url"> | ||
58 | ${comment.name} | ||
59 | </span> | ||
60 | <br /> | ||
61 | <span class="blog-comment-date"> | ||
62 | ${comment.created.strftime('%B %d, %Y at %I:%M %p')} | ||
63 | </span> | ||
64 | </p> | ||
65 | |||
66 | <div class="blog-comment" py:content="comment.body" /> | ||
67 | </li> | ||
68 | </ol> | ||
69 | <input type="submit" value="Submit changes"/> | ||
70 | </form> | ||
71 | </div> <!-- blog-comments --> | ||
72 | </div> <!-- blog-post --> | ||
73 | |||
74 | </div> <!-- blog-content --> | ||
75 | </div> <!-- main --> | ||
76 | |||
77 | </body> | ||
78 | </html> | ||