Mercurial > genshi > genshi-test
diff examples/tutorial/geddit/templates/info.html @ 621:d218020fb92a
Use system default date/time format in templates.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 19:09:28 +0000 |
parents | 71d3edd302ae |
children | dc35e9882390 |
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/info.html +++ b/examples/tutorial/geddit/templates/info.html @@ -9,12 +9,12 @@ <body> <h1>${link.title}</h1> <a href="${link.url}">${link.url}</a><br /> - posted by ${link.username} at ${link.time.strftime('%m/%d/%Y %H:%M')}<br /> + posted by ${link.username} at ${link.time.strftime('%x %X')}<br /> <a href="${url('/comment/%s/' % link.id)}">comment</a> <ul py:if="link.comments" class="comments"> <li py:for="comment in link.comments"> <strong>${comment.username}</strong> - at ${comment.time.strftime('%m/%d/%Y %H:%M')} + at ${comment.time.strftime('%x %X')} <blockquote>${comment.content}</blockquote> </li> </ul>