Mercurial > genshi > genshi-test
comparison examples/tutorial/geddit/templates/info.html @ 619:71d3edd302ae
GenshiTutorial: various updates to sync with wiki page.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 14:19:59 +0000 |
parents | 5a2059ce1f0b |
children | d218020fb92a |
comparison
equal
deleted
inserted
replaced
618:5a2059ce1f0b | 619:71d3edd302ae |
---|---|
2 <html xmlns="http://www.w3.org/1999/xhtml" | 2 <html xmlns="http://www.w3.org/1999/xhtml" |
3 xmlns:xi="http://www.w3.org/2001/XInclude" | 3 xmlns:xi="http://www.w3.org/2001/XInclude" |
4 xmlns:py="http://genshi.edgewall.org/"> | 4 xmlns:py="http://genshi.edgewall.org/"> |
5 <xi:include href="layout.html" /> | 5 <xi:include href="layout.html" /> |
6 <head> | 6 <head> |
7 <title>${submission.title}</title> | 7 <title>${link.title}</title> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <h1>${submission.title}</h1> | 10 <h1>${link.title}</h1> |
11 <a href="${submission.url}">${submission.url}</a><br /> | 11 <a href="${link.url}">${link.url}</a><br /> |
12 posted by ${submission.username} | 12 posted by ${link.username} at ${link.time.strftime('%m/%d/%Y %H:%M')}<br /> |
13 at ${submission.time.strftime('%m/%d/%Y %H:%M')}<br /> | 13 <a href="${url('/comment/%s/' % link.id)}">comment</a> |
14 <a href="${url('/comment/%s/' % submission.code)}">comment</a> | 14 <ul py:if="link.comments" class="comments"> |
15 <ul py:if="submission.comments" class="comments"> | 15 <li py:for="comment in link.comments"> |
16 <li py:for="comment in submission.comments"> | |
17 <strong>${comment.username}</strong> | 16 <strong>${comment.username}</strong> |
18 at ${comment.time.strftime('%m/%d/%Y %H:%M')} | 17 at ${comment.time.strftime('%m/%d/%Y %H:%M')} |
19 <blockquote>${comment.content}</blockquote> | 18 <blockquote>${comment.content}</blockquote> |
20 </li> | 19 </li> |
21 </ul> | 20 </ul> |