diff options
Diffstat (limited to 'quoins/templates/delete_post.html')
-rw-r--r-- | quoins/templates/delete_post.html | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/quoins/templates/delete_post.html b/quoins/templates/delete_post.html new file mode 100644 index 0000000..e237dad --- /dev/null +++ b/quoins/templates/delete_post.html | |||
@@ -0,0 +1,89 @@ | |||
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 | |||
13 | <link rel="pingback" href="${quoins.absolute_url('/pingback/')}" /> | ||
14 | </head> | ||
15 | |||
16 | |||
17 | <body> | ||
18 | <div id="main"> | ||
19 | <div id="blog-content"> | ||
20 | |||
21 | <div class="blog-post"> | ||
22 | |||
23 | <b> Delete this post? </b> | ||
24 | <form action="${quoins.url('/delete_post')}" method="post"> | ||
25 | <input type="hidden" name="id" value="${post.id}" /> | ||
26 | <input type="hidden" name="confirm" value="1" /> | ||
27 | |||
28 | <input type="submit" value="Delete post"/> | ||
29 | </form> | ||
30 | |||
31 | <div class="blog-post-head"> | ||
32 | <h2><a title="Permanent link to ${post.title}" | ||
33 | href="${quoins.url('/post/%s'%post.id)}" | ||
34 | rel="bookmark">${post.title}</a> | ||
35 | </h2> | ||
36 | <div class="blog-post-dateline"> | ||
37 | Posted by ${post.author.display_name} | ||
38 | on ${post.created.strftime('%B %d, %Y at %I:%M %p')} | ||
39 | </div> | ||
40 | </div> <!-- blog-post-head --> | ||
41 | |||
42 | <div class="blog-post-content"> | ||
43 | <div py:content="quoins.get_html(post.long_body)" /> | ||
44 | |||
45 | </div> <!-- blog-post_content --> | ||
46 | |||
47 | <div class="blog-comments"> | ||
48 | |||
49 | <h3>${len(post.comments_and_links)} Comments</h3> | ||
50 | |||
51 | <ol> | ||
52 | <li py:for="i, comment in enumerate(post.comments_and_links)" id="comment-${comment.id}"> | ||
53 | <p class="blog-comment-header"> | ||
54 | <span class="blog-comment-number"> | ||
55 | <a href="#comment-${comment.id}"> | ||
56 | [${i + 1}] | ||
57 | </a> | ||
58 | </span> | ||
59 | | ||
60 | <span class="blog-comment-user" py:if="comment.author_url"> | ||
61 | <a href="${comment.author_url}" rel="nofollow">${comment.author_name}</a> | ||
62 | </span> | ||
63 | <span class="blog-comment-user" py:if="not comment.author_url"> | ||
64 | ${comment.author_name} | ||
65 | </span> | ||
66 | <br /> | ||
67 | <span class="blog-comment-date"> | ||
68 | ${comment.created.strftime('%B %d, %Y at %I:%M %p')} | ||
69 | </span> | ||
70 | |||
71 | <span py:if="'blog-post' in [x.permission_name for x in tg.identity.user.permissions]"> | ||
72 | | ||
73 | <a href="${quoins.url('/delete_comment/%s'%comment.id)}"> | ||
74 | Delete comment | ||
75 | </a> | ||
76 | </span> | ||
77 | </p> | ||
78 | |||
79 | <div class="blog-comment" py:content="comment.body" /> | ||
80 | </li> | ||
81 | </ol> | ||
82 | </div> <!-- blog-comments --> | ||
83 | </div> <!-- blog-post --> | ||
84 | |||
85 | </div> <!-- blog-content --> | ||
86 | </div> <!-- main --> | ||
87 | |||
88 | </body> | ||
89 | </html> | ||