diff options
Diffstat (limited to 'quoins/templates/blog-master.html')
-rw-r--r-- | quoins/templates/blog-master.html | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/quoins/templates/blog-master.html b/quoins/templates/blog-master.html new file mode 100644 index 0000000..a8ad0cc --- /dev/null +++ b/quoins/templates/blog-master.html | |||
@@ -0,0 +1,83 @@ | |||
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 | py:strip=""> | ||
7 | |||
8 | <div py:match="div[@id='blog-content']" py:attrs="select('@*')"> | ||
9 | |||
10 | |||
11 | <div id="blog-entries-column"> | ||
12 | <div id="blog-entries"> | ||
13 | <div py:replace="select('*|text()')" /> | ||
14 | </div> | ||
15 | </div> | ||
16 | |||
17 | <div id="blog-navigation-column"> | ||
18 | <div id="blog-navigation"> | ||
19 | <span py:if="request.identity"> | ||
20 | <h3>${tg.identity.user.display_name}</h3> | ||
21 | <ul> | ||
22 | <li><a href="${tg.url('/logout_handler')}">Logout</a></li> | ||
23 | <span py:if="'blog-post' in [x.permission_name for x in tg.identity.user.permissions]"> | ||
24 | <li><a href="${quoins.url('/new_post')}">Write post</a></li> | ||
25 | <li><a href="${quoins.url('/unapproved_comments')}">Approve comments</a></li> | ||
26 | <li py:if="blog and blog.unpublished_posts"> | ||
27 | <a href="${quoins.url('/unpublished_posts')}">Draft posts</a> | ||
28 | </li> | ||
29 | <li py:if="post"> | ||
30 | <a href="${quoins.url('/edit_post/%s'%post.id)}">Edit post</a> | ||
31 | </li> | ||
32 | <li py:if="post"> | ||
33 | <a href="${quoins.url('/delete_post/%s'%post.id)}">Delete post</a> | ||
34 | </li> | ||
35 | </span> | ||
36 | </ul> | ||
37 | </span> | ||
38 | |||
39 | <div id="blog-navigation-tags"> | ||
40 | <h3>Tags</h3> | ||
41 | <ul> | ||
42 | <li py:for="tag in blog.tags"> | ||
43 | <a href="${quoins.url('/tag/%s'%tag.name)}">${tag.name}</a> | ||
44 | </li> | ||
45 | </ul> | ||
46 | </div> | ||
47 | |||
48 | <div id="blog-navigation-archive"> | ||
49 | <h3>Archive</h3> | ||
50 | <ul> | ||
51 | <li py:for="year in blog.getYears()"> | ||
52 | <a href="${quoins.url('/archive/%s'%year[0])}"> | ||
53 | ${year[0]}</a> (${year[1]}) | ||
54 | </li> | ||
55 | </ul> | ||
56 | </div> | ||
57 | |||
58 | <div id="blog-navigation-authors"> | ||
59 | <h3>Authors</h3> | ||
60 | <ul> | ||
61 | <li py:for="author in blog.authors"> | ||
62 | <a href="${quoins.url('/author/%s'%author.user_name)}"> | ||
63 | ${author.display_name}</a> | ||
64 | </li> | ||
65 | </ul> | ||
66 | </div> | ||
67 | |||
68 | <div id="blog-subscribe"> | ||
69 | <a href="${quoins.url('/feed/rss2_0')}"> | ||
70 | <img id="blog-feed-icon" | ||
71 | src="${tg.url('/static/images/feed-icon-20x20.png')}" /> | ||
72 | Subscribe to ${blog.title} | ||
73 | </a> | ||
74 | </div> | ||
75 | |||
76 | </div> <!-- blog-navigation --> | ||
77 | </div> <!-- blog-navigation-column --> | ||
78 | |||
79 | <div id="blog-footer"></div> | ||
80 | |||
81 | </div> <!-- blog-content --> | ||
82 | |||
83 | </html> | ||