Mercurial > genshi > genshi-test
comparison examples/tutorial/geddit/templates/index.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 |
comparison
equal
deleted
inserted
replaced
620:f007a645dfd0 | 621:d218020fb92a |
---|---|
11 <p><a href="${url('/submit/')}">Submit new link</a></p> | 11 <p><a href="${url('/submit/')}">Submit new link</a></p> |
12 | 12 |
13 <ol py:if="links" class="links"> | 13 <ol py:if="links" class="links"> |
14 <li py:for="link in links"> | 14 <li py:for="link in links"> |
15 <a href="${link.url}">${link.title}</a> | 15 <a href="${link.url}">${link.title}</a> |
16 posted by ${link.username} at ${link.time.strftime('%m/%d/%Y %H:%M')} | 16 posted by ${link.username} at ${link.time.strftime('%x %X')} |
17 <div class="info"> | 17 <div class="info"> |
18 <a href="${url('/info/%s/' % link.id)}"> | 18 <a href="${url('/info/%s/' % link.id)}"> |
19 ${len(link.comments)} comments | 19 ${len(link.comments)} comments |
20 </a> | 20 </a> |
21 </div> | 21 </div> |