Mercurial > genshi > mirror
comparison examples/tutorial/geddit/templates/index.html @ 628:9822dfff0fd5 trunk
GenshiTutorial: tweaks to sync with code on wiki page.
author | cmlenz |
---|---|
date | Mon, 03 Sep 2007 19:59:03 +0000 |
parents | 3ed77fbfafa8 |
children | f779e566884d |
comparison
equal
deleted
inserted
replaced
627:3ed77fbfafa8 | 628:9822dfff0fd5 |
---|---|
3 xmlns:xi="http://www.w3.org/2001/XInclude" | 3 xmlns:xi="http://www.w3.org/2001/XInclude" |
4 xmlns:py="http://genshi.edgewall.org/"> | 4 xmlns:py="http://genshi.edgewall.org/"> |
5 <xi:include href="layout.html" /> | 5 <xi:include href="layout.html" /> |
6 <head> | 6 <head> |
7 <title>News</title> | 7 <title>News</title> |
8 <link rel="alternate" type="application/atom+xml" title="Geddit" | |
9 href="${url('/feed/')}" /> | |
8 </head> | 10 </head> |
9 <body> | 11 <body> |
10 <h1>News</h1> | 12 <h1>News</h1> |
11 | 13 |
12 <ol py:if="links"> | 14 <ol py:if="links" class="links"> |
13 <li py:for="link in links"> | 15 <li py:for="link in links"> |
14 <a href="${link.url}">${link.title}</a> | 16 <a href="${link.url}">${link.title}</a> |
15 posted by ${link.username} at ${link.time.strftime('%x %X')} | 17 posted by ${link.username} at ${link.time.strftime('%x %X')} |
18 <div class="info"> | |
19 <a href="${url('/info/%s/' % link.id)}"> | |
20 ${len(link.comments)} comments | |
21 </a> | |
22 </div> | |
16 </li> | 23 </li> |
17 </ol> | 24 </ol> |
18 | 25 |
19 <p><a class="action" href="/submit/">Submit new link</a></p> | 26 <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> |
20 </body> | 27 </body> |
21 </html> | 28 </html> |