Mercurial > genshi > mirror
changeset 621:734fbb77b579 trunk
Use system default date/time format in templates.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 19:09:28 +0000 |
parents | 725488d315f3 |
children | 6780f1b1b20d |
files | examples/tutorial/geddit/templates/comment.html examples/tutorial/geddit/templates/index.html examples/tutorial/geddit/templates/info.html |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/comment.html +++ b/examples/tutorial/geddit/templates/comment.html @@ -10,7 +10,7 @@ <h1>Comment on “${link.title}”</h1> <p py:if="comment"> In reply to <strong>${comment.username}</strong> - at ${comment.time.strftime('%M/%d/%Y %H:%m')}: + at ${comment.time.strftime('%x %X')}: <blockquote>${comment.content}</blockquote> </p> <form action="" method="post">
--- a/examples/tutorial/geddit/templates/index.html +++ b/examples/tutorial/geddit/templates/index.html @@ -13,7 +13,7 @@ <ol py:if="links" class="links"> <li py:for="link in links"> <a href="${link.url}">${link.title}</a> - posted by ${link.username} at ${link.time.strftime('%m/%d/%Y %H:%M')} + posted by ${link.username} at ${link.time.strftime('%x %X')} <div class="info"> <a href="${url('/info/%s/' % link.id)}"> ${len(link.comments)} comments
--- 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>