comparison examples/tutorial/geddit/templates/info.html @ 619:756e7418e10c trunk

GenshiTutorial: various updates to sync with wiki page.
author cmlenz
date Thu, 30 Aug 2007 14:19:59 +0000
parents b6706f9346ac
children 734fbb77b579
comparison
equal deleted inserted replaced
618:b6706f9346ac 619:756e7418e10c
2 <html xmlns="http://www.w3.org/1999/xhtml" 2 <html xmlns="http://www.w3.org/1999/xhtml"
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>${submission.title}</title> 7 <title>${link.title}</title>
8 </head> 8 </head>
9 <body> 9 <body>
10 <h1>${submission.title}</h1> 10 <h1>${link.title}</h1>
11 <a href="${submission.url}">${submission.url}</a><br /> 11 <a href="${link.url}">${link.url}</a><br />
12 posted by ${submission.username} 12 posted by ${link.username} at ${link.time.strftime('%m/%d/%Y %H:%M')}<br />
13 at ${submission.time.strftime('%m/%d/%Y %H:%M')}<br /> 13 <a href="${url('/comment/%s/' % link.id)}">comment</a>
14 <a href="${url('/comment/%s/' % submission.code)}">comment</a> 14 <ul py:if="link.comments" class="comments">
15 <ul py:if="submission.comments" class="comments"> 15 <li py:for="comment in link.comments">
16 <li py:for="comment in submission.comments">
17 <strong>${comment.username}</strong> 16 <strong>${comment.username}</strong>
18 at ${comment.time.strftime('%m/%d/%Y %H:%M')} 17 at ${comment.time.strftime('%m/%d/%Y %H:%M')}
19 <blockquote>${comment.content}</blockquote> 18 <blockquote>${comment.content}</blockquote>
20 </li> 19 </li>
21 </ul> 20 </ul>
Copyright (C) 2012-2017 Edgewall Software