annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
1 <!DOCTYPE html
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
5 xmlns:py="http://genshi.edgewall.org/">
8
67c2ccaef869 adding templates for future use with genshi
k0s <k0scist@gmail.com>
parents:
diff changeset
6
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
7 <head>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
8 <title>${user} - ${site_name}</title>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
9
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
10 <py:for each="index, sheet in stylesheets">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
11 </py:for>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
12
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
13 </head>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
14
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
15 <body>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
16 <xi:include href="navigation.html">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
17
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
18 <div py:for="entry in blog"
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
19 id="${entry.datestamp()}" class="blog-entry">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
20 <a name="${entry.datestamp()}" />
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
21
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
22 <div class="subject">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
23 <a href="TODO">${subject}</a>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
24 <em py:if="entry.privacy == secret and role == 'friend'">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
25 secret
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
26 </em>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
27 </div>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
28
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
29 ${body}
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
30
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
31 <!-- privacy settings -->
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
32 <div py:if="role == 'author'">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
33 <form action="TODO" method="post">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
34 <span title="viewable to everyone">public<input checked type="radio" name="privacy" value="public"/></span>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
35 <span title="viewable only to your friends">secret<input type="radio" name="privacy" value="secret"/></span>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
36 <span title="viewable only to you">private<input type="radio" name="privacy" value="private"/></span>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
37 <input type="submit" name="submit" value="Change Privacy" />
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
38 </form>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
39 </div>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
40
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
41 </div>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
42 </body>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
43
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
44 </html>