Mercurial > hg > bitsyblog
annotate bitsyblog/templates/blog.html @ 13:fbf8f198ef67
template additions
author | k0s <k0scist@gmail.com> |
---|---|
date | Wed, 07 Oct 2009 17:19:47 -0400 |
parents | ebe8dc33c871 |
children | 36698624435b |
rev | line source |
---|---|
10 | 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" | |
11 | 5 xmlns:py="http://genshi.edgewall.org/" |
6 xmlns:xi="http://www.w3.org/2001/XInclude"> | |
8
67c2ccaef869
adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
7 |
10 | 8 <head> |
9 <title>${user} - ${site_name}</title> | |
10 | |
11 <py:for each="index, sheet in stylesheets"> | |
13 | 12 <link href="${link(request, ('css', sheet)" |
13 type="text/css" | |
14 rel="${index and 'alternate stylesheet' or 'stylesheet'}" | |
15 title="sheet.rsplit('.', 1)[0]"/> | |
10 | 16 </py:for> |
17 | |
18 </head> | |
19 | |
20 <body> | |
13 | 21 |
22 <!-- nav links --> | |
10 | 23 <xi:include href="navigation.html"> |
24 | |
13 | 25 <div py:if="n_links == 0 or not len(blog)" class="navigation"> |
26 <ul> | |
27 | |
28 </ul> | |
29 </div> | |
30 | |
31 <!-- blog entries --> | |
10 | 32 <div py:for="entry in blog" |
33 id="${entry.datestamp()}" class="blog-entry"> | |
34 <a name="${entry.datestamp()}" /> | |
35 | |
36 <div class="subject"> | |
13 | 37 <a href="${'foo'}">${subject}</a> |
10 | 38 <em py:if="entry.privacy == secret and role == 'friend'"> |
39 secret | |
40 </em> | |
41 </div> | |
42 | |
43 ${body} | |
44 | |
45 <div py:if="role == 'author'"> | |
11 | 46 |
47 <!-- privacy settings --> | |
10 | 48 <form action="TODO" method="post"> |
49 <span title="viewable to everyone">public<input checked type="radio" name="privacy" value="public"/></span> | |
50 <span title="viewable only to your friends">secret<input type="radio" name="privacy" value="secret"/></span> | |
51 <span title="viewable only to you">private<input type="radio" name="privacy" value="private"/></span> | |
52 <input type="submit" name="submit" value="Change Privacy" /> | |
53 </form> | |
11 | 54 |
55 <!-- mangled URL --> | |
56 <div> | |
57 <span title="${'You can give this URL so people may see this %s post without logging in' % entry.privacy}">Mangled URL:</span> | |
58 <a href="TODO">${'TODO'}</a> | |
59 </div> | |
10 | 60 </div> |
61 | |
62 </div> | |
63 </body> | |
64 | |
65 </html> |