Mercurial > genshi > mirror
comparison examples/tutorial/geddit/templates/index.html @ 625:abad7c2ebe15 trunk
GenshiTutorial: implemented AJAX commenting.
author | cmlenz |
---|---|
date | Fri, 31 Aug 2007 17:01:00 +0000 |
parents | 58be58c03509 |
children | 3ed77fbfafa8 |
comparison
equal
deleted
inserted
replaced
624:dc657447f352 | 625:abad7c2ebe15 |
---|---|
8 <link rel="alternate" type="application/atom+xml" title="Geddit" | 8 <link rel="alternate" type="application/atom+xml" title="Geddit" |
9 href="${url('/feed/')}" /> | 9 href="${url('/feed/')}" /> |
10 </head> | 10 </head> |
11 <body> | 11 <body> |
12 <h1>News</h1> | 12 <h1>News</h1> |
13 <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> | |
14 | 13 |
15 <ol py:if="links" class="links"> | 14 <ol py:if="links" class="links"> |
16 <li py:for="link in links"> | 15 <li py:for="link in links"> |
17 <a href="${link.url}">${link.title}</a> | 16 <a href="${link.url}">${link.title}</a> |
18 posted by ${link.username} at ${link.time.strftime('%x %X')} | 17 posted by ${link.username} at ${link.time.strftime('%x %X')} |
21 ${len(link.comments)} comments | 20 ${len(link.comments)} comments |
22 </a> | 21 </a> |
23 </div> | 22 </div> |
24 </li> | 23 </li> |
25 </ol> | 24 </ol> |
25 | |
26 <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> | |
26 </body> | 27 </body> |
27 </html> | 28 </html> |