Mercurial > hg > bitsyblog
comparison bitsyblog/templates/blog.html @ 10:93a4557e15c1
filling out genshi
author | k0s <k0scist@gmail.com> |
---|---|
date | Tue, 06 Oct 2009 21:37:50 -0400 |
parents | 67c2ccaef869 |
children | ebe8dc33c871 |
comparison
equal
deleted
inserted
replaced
9:e4f28fde518a | 10:93a4557e15c1 |
---|---|
1 <!DOCTYPE html | |
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
4 <html xmlns="http://www.w3.org/1999/xhtml" | |
5 xmlns:py="http://genshi.edgewall.org/"> | |
1 | 6 |
2 <div py:for="entry in blog" | 7 <head> |
3 id="${blog_id}" class="blog-entry"> | 8 <title>${user} - ${site_name}</title> |
4 <a name="${blog_id}" /> | 9 |
5 <div class="subject"> | 10 <py:for each="index, sheet in stylesheets"> |
6 <a href="TODO">${subject}</a> | 11 </py:for> |
7 | 12 |
13 </head> | |
14 | |
15 <body> | |
16 <xi:include href="navigation.html"> | |
17 | |
18 <div py:for="entry in blog" | |
19 id="${entry.datestamp()}" class="blog-entry"> | |
20 <a name="${entry.datestamp()}" /> | |
21 | |
22 <div class="subject"> | |
23 <a href="TODO">${subject}</a> | |
24 <em py:if="entry.privacy == secret and role == 'friend'"> | |
25 secret | |
26 </em> | |
27 </div> | |
28 | |
29 ${body} | |
30 | |
31 <!-- privacy settings --> | |
32 <div py:if="role == 'author'"> | |
33 <form action="TODO" method="post"> | |
34 <span title="viewable to everyone">public<input checked type="radio" name="privacy" value="public"/></span> | |
35 <span title="viewable only to your friends">secret<input type="radio" name="privacy" value="secret"/></span> | |
36 <span title="viewable only to you">private<input type="radio" name="privacy" value="private"/></span> | |
37 <input type="submit" name="submit" value="Change Privacy" /> | |
38 </form> | |
39 </div> | |
40 | |
41 </div> | |
42 </body> | |
43 | |
44 </html> |