Mercurial > genshi > genshi-test
comparison examples/tutorial/geddit/templates/index.html @ 625:dba522b4c31d
GenshiTutorial: implemented AJAX commenting.
author | cmlenz |
---|---|
date | Fri, 31 Aug 2007 17:01:00 +0000 |
parents | 9c89e22516b4 |
children | 2f4dc32a13e7 |
comparison
equal
deleted
inserted
replaced
624:1d23dddd6c2d | 625:dba522b4c31d |
---|---|
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> |