Mercurial > genshi > mirror
diff 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 |
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/info.html +++ b/examples/tutorial/geddit/templates/info.html @@ -10,8 +10,14 @@ <h1>${submission.title}</h1> <a href="${submission.url}">${submission.url}</a><br /> posted by ${submission.username} - at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br /> + at ${submission.time.strftime('%m/%d/%Y %H:%M')}<br /> <a href="${url('/comment/%s/' % submission.code)}">comment</a> - <xi:include href="comments.html" py:with="comments=submission.comments" /> + <ul py:if="submission.comments" class="comments"> + <li py:for="comment in submission.comments"> + <strong>${comment.username}</strong> + at ${comment.time.strftime('%m/%d/%Y %H:%M')} + <blockquote>${comment.content}</blockquote> + </li> + </ul> </body> </html>