diff examples/tutorial/geddit/templates/index.html @ 628:693a7212b348

GenshiTutorial: tweaks to sync with code on wiki page.
author cmlenz
date Mon, 03 Sep 2007 19:59:03 +0000
parents 2f4dc32a13e7
children d648cd694286
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/index.html
+++ b/examples/tutorial/geddit/templates/index.html
@@ -5,17 +5,24 @@
   <xi:include href="layout.html" />
   <head>
     <title>News</title>
+    <link rel="alternate" type="application/atom+xml" title="Geddit"
+          href="${url('/feed/')}" />
   </head>
   <body>
     <h1>News</h1>
 
-    <ol py:if="links">
+    <ol py:if="links" class="links">
       <li py:for="link in links">
         <a href="${link.url}">${link.title}</a>
         posted by ${link.username} at ${link.time.strftime('%x %X')}
+        <div class="info">
+          <a href="${url('/info/%s/' % link.id)}">
+            ${len(link.comments)} comments
+          </a>
+        </div>
       </li>
     </ol>
 
-    <p><a class="action" href="/submit/">Submit new link</a></p>
+    <p><a class="action" href="${url('/submit/')}">Submit new link</a></p>
   </body>
 </html>
Copyright (C) 2012-2017 Edgewall Software