comparison examples/tutorial/geddit/templates/index.html @ 627:2f4dc32a13e7

GenshiTutorial: minor tweaks to sync with Wiki page.
author cmlenz
date Fri, 31 Aug 2007 23:13:27 +0000
parents dba522b4c31d
children 693a7212b348
comparison
equal deleted inserted replaced
626:3110105824e8 627:2f4dc32a13e7
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/')}" />
10 </head> 8 </head>
11 <body> 9 <body>
12 <h1>News</h1> 10 <h1>News</h1>
13 11
14 <ol py:if="links" class="links"> 12 <ol py:if="links">
15 <li py:for="link in links"> 13 <li py:for="link in links">
16 <a href="${link.url}">${link.title}</a> 14 <a href="${link.url}">${link.title}</a>
17 posted by ${link.username} at ${link.time.strftime('%x %X')} 15 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>
23 </li> 16 </li>
24 </ol> 17 </ol>
25 18
26 <p><a class="action" href="${url('/submit/')}">Submit new link</a></p> 19 <p><a class="action" href="/submit/">Submit new link</a></p>
27 </body> 20 </body>
28 </html> 21 </html>
Copyright (C) 2012-2017 Edgewall Software