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
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"
11
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
5 xmlns:py="http://genshi.edgewall.org/"
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
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
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
8 <head>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
9 <title>${user} - ${site_name}</title>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
11 <py:for each="index, sheet in stylesheets">
13
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
12 <link href="${link(request, ('css', sheet)"
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
13 type="text/css"
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
14 rel="${index and 'alternate stylesheet' or 'stylesheet'}"
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
15 title="sheet.rsplit('.', 1)[0]"/>
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
16 </py:for>
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 </head>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
19
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
20 <body>
13
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
21
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
22 <!-- nav links -->
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
23 <xi:include href="navigation.html">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
24
13
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
25 <div py:if="n_links == 0 or not len(blog)" class="navigation">
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
26 <ul>
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
27
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
28 </ul>
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
29 </div>
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
30
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
31 <!-- blog entries -->
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
32 <div py:for="entry in blog"
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
33 id="${entry.datestamp()}" class="blog-entry">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
34 <a name="${entry.datestamp()}" />
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
35
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
36 <div class="subject">
13
fbf8f198ef67 template additions
k0s <k0scist@gmail.com>
parents: 11
diff changeset
37 <a href="${'foo'}">${subject}</a>
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
38 <em py:if="entry.privacy == secret and role == 'friend'">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
39 secret
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
40 </em>
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
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
43 ${body}
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
44
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
45 <div py:if="role == 'author'">
11
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
46
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
47 <!-- privacy settings -->
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
48 <form action="TODO" method="post">
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
49 <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
50 <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
51 <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
52 <input type="submit" name="submit" value="Change Privacy" />
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
53 </form>
11
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
54
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
55 <!-- mangled URL -->
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
56 <div>
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
57 <span title="${'You can give this URL so people may see this %s post without logging in' % entry.privacy}">Mangled URL:</span>
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
58 <a href="TODO">${'TODO'}</a>
ebe8dc33c871 stubbing more markup
k0s <k0scist@gmail.com>
parents: 10
diff changeset
59 </div>
10
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
60 </div>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
61
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
62 </div>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
63 </body>
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
64
93a4557e15c1 filling out genshi
k0s <k0scist@gmail.com>
parents: 8
diff changeset
65 </html>