diff options
Diffstat (limited to 'quoins/templates/post.html')
-rw-r--r-- | quoins/templates/post.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/quoins/templates/post.html b/quoins/templates/post.html new file mode 100644 index 0000000..72ee748 --- /dev/null +++ b/quoins/templates/post.html | |||
@@ -0,0 +1,85 @@ | |||
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 | <div class="blog-post-head"> | ||
23 | <h2><a title="Permanent link to ${post.title}" | ||
24 | href="${quoins.url('/post/%s'%post.id)}" | ||
25 | rel="bookmark">${post.title}</a> | ||
26 | </h2> | ||
27 | <div class="blog-post-dateline"> | ||
28 | Posted by | ||
29 | <a href="${quoins.url('/author/%s'%post.author.user_name)}"> | ||
30 | ${post.author.display_name} | ||
31 | </a> | ||
32 | on ${post.created.strftime('%B %d, %Y at %I:%M %p')} | ||
33 | </div> | ||
34 | </div> <!-- blog-post-head --> | ||
35 | |||
36 | <div class="blog-post-content"> | ||
37 | <div py:content="quoins.get_html(post.long_body)" /> | ||
38 | |||
39 | </div> <!-- blog-post_content --> | ||
40 | |||
41 | <div class="blog-comments"> | ||
42 | |||
43 | <h3>${len(post.comments_and_links)} Comments</h3> | ||
44 | |||
45 | <ol> | ||
46 | <li py:for="i, comment in enumerate(post.comments_and_links)" id="comment-${comment.id}"> | ||
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.author_url"> | ||
55 | <a href="${comment.author_url}" rel="nofollow">${comment.author_name}</a> | ||
56 | </span> | ||
57 | <span class="blog-comment-user" py:if="not comment.author_url"> | ||
58 | ${comment.author_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 | |||
65 | <span py:if="tg.identity and 'blog-post' in [x.permission_name for x in tg.identity.user.permissions]"> | ||
66 | | ||
67 | <a href="${quoins.url('/delete_comment/%s'%comment.id)}"> | ||
68 | Delete comment | ||
69 | </a> | ||
70 | </span> | ||
71 | </p> | ||
72 | |||
73 | <div class="blog-comment" py:content="comment.body" /> | ||
74 | </li> | ||
75 | </ol> | ||
76 | </div> <!-- blog-comments --> | ||
77 | </div> <!-- blog-post --> | ||
78 | |||
79 | <a py:if="post.allow_comments" href="${quoins.url('/new_comment/%s'%post.id)}">Comment on this post</a> | ||
80 | |||
81 | </div> <!-- blog-content --> | ||
82 | </div> <!-- main --> | ||
83 | |||
84 | </body> | ||
85 | </html> | ||