Mercurial > genshi > mirror
comparison examples/tutorial/geddit/templates/info.html @ 618:b6706f9346ac trunk
Simplify the tutorial project: comments are now flat, not hierarchical.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 09:08:06 +0000 |
parents | 06165fee45ab |
children | 756e7418e10c |
comparison
equal
deleted
inserted
replaced
617:4fefe77c332a | 618:b6706f9346ac |
---|---|
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <h1>${submission.title}</h1> | 10 <h1>${submission.title}</h1> |
11 <a href="${submission.url}">${submission.url}</a><br /> | 11 <a href="${submission.url}">${submission.url}</a><br /> |
12 posted by ${submission.username} | 12 posted by ${submission.username} |
13 at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br /> | 13 at ${submission.time.strftime('%m/%d/%Y %H:%M')}<br /> |
14 <a href="${url('/comment/%s/' % submission.code)}">comment</a> | 14 <a href="${url('/comment/%s/' % submission.code)}">comment</a> |
15 <xi:include href="comments.html" py:with="comments=submission.comments" /> | 15 <ul py:if="submission.comments" class="comments"> |
16 <li py:for="comment in submission.comments"> | |
17 <strong>${comment.username}</strong> | |
18 at ${comment.time.strftime('%m/%d/%Y %H:%M')} | |
19 <blockquote>${comment.content}</blockquote> | |
20 </li> | |
21 </ul> | |
16 </body> | 22 </body> |
17 </html> | 23 </html> |