annotate examples/tutorial/geddit/templates/info.html @ 622:6780f1b1b20d trunk

GenshiTutorial: add Atom feeds.
author cmlenz
date Thu, 30 Aug 2007 22:49:48 +0000
parents 734fbb77b579
children abad7c2ebe15
rev   line source
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
1 <!DOCTYPE html>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml"
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
3 xmlns:xi="http://www.w3.org/2001/XInclude"
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
4 xmlns:py="http://genshi.edgewall.org/">
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
5 <xi:include href="layout.html" />
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
6 <head>
619
756e7418e10c GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents: 618
diff changeset
7 <title>${link.title}</title>
622
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents: 621
diff changeset
8 <link rel="alternate" type="application/atom+xml" title="Geddit: ${link.title}"
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents: 621
diff changeset
9 href="${url('/feed/%s/' % link.id)}" />
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
10 </head>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
11 <body>
619
756e7418e10c GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents: 618
diff changeset
12 <h1>${link.title}</h1>
756e7418e10c GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents: 618
diff changeset
13 <a href="${link.url}">${link.url}</a><br />
621
734fbb77b579 Use system default date/time format in templates.
cmlenz
parents: 619
diff changeset
14 posted by ${link.username} at ${link.time.strftime('%x %X')}<br />
622
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents: 621
diff changeset
15
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents: 621
diff changeset
16 <p><a class="action" href="${url('/comment/%s/' % link.id)}">comment</a></p>
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents: 621
diff changeset
17
619
756e7418e10c GenshiTutorial: various updates to sync with wiki page.
cmlenz
parents: 618
diff changeset
18 <ul py:if="link.comments" class="comments">
622
6780f1b1b20d GenshiTutorial: add Atom feeds.
cmlenz
parents: 621
diff changeset
19 <li py:for="idx, comment in enumerate(link.comments)" id="comment$idx">
618
b6706f9346ac Simplify the tutorial project: comments are now flat, not hierarchical.
cmlenz
parents: 615
diff changeset
20 <strong>${comment.username}</strong>
621
734fbb77b579 Use system default date/time format in templates.
cmlenz
parents: 619
diff changeset
21 at ${comment.time.strftime('%x %X')}
618
b6706f9346ac Simplify the tutorial project: comments are now flat, not hierarchical.
cmlenz
parents: 615
diff changeset
22 <blockquote>${comment.content}</blockquote>
b6706f9346ac Simplify the tutorial project: comments are now flat, not hierarchical.
cmlenz
parents: 615
diff changeset
23 </li>
b6706f9346ac Simplify the tutorial project: comments are now flat, not hierarchical.
cmlenz
parents: 615
diff changeset
24 </ul>
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
25 </body>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
26 </html>
Copyright (C) 2012-2017 Edgewall Software