diff examples/tutorial/geddit/templates/info.html @ 618:5a2059ce1f0b

Simplify the tutorial project: comments are now flat, not hierarchical.
author cmlenz
date Thu, 30 Aug 2007 09:08:06 +0000
parents 0dc152d128f5
children 71d3edd302ae
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/info.html
+++ b/examples/tutorial/geddit/templates/info.html
@@ -10,8 +10,14 @@
     <h1>${submission.title}</h1>
     <a href="${submission.url}">${submission.url}</a><br />
     posted by ${submission.username}
-    at ${submission.time.strftime('%M/%d/%Y %H:%m')}<br />
+    at ${submission.time.strftime('%m/%d/%Y %H:%M')}<br />
     <a href="${url('/comment/%s/' % submission.code)}">comment</a>
-    <xi:include href="comments.html" py:with="comments=submission.comments" />
+    <ul py:if="submission.comments" class="comments">
+      <li py:for="comment in submission.comments">
+        <strong>${comment.username}</strong>
+        at ${comment.time.strftime('%m/%d/%Y %H:%M')}
+        <blockquote>${comment.content}</blockquote>
+      </li>
+    </ul>
   </body>
 </html>
Copyright (C) 2012-2017 Edgewall Software