annotate examples/tutorial/geddit/templates/comments.html @ 616:8ada29c99c0d trunk

GenshiTutorial: use form filler on comment/reply views.
author cmlenz
date Wed, 29 Aug 2007 20:51:39 +0000
parents 06165fee45ab
children b6706f9346ac
rev   line source
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
1 <!DOCTYPE html>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
2 <ul xmlns="http://www.w3.org/1999/xhtml"
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
3 xmlns:xi="http://www.w3.org/2001/XInclude"
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
4 xmlns:py="http://genshi.edgewall.org/"
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
5 py:if="comments" class="comments">
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
6 <li py:for="comment in comments">
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
7 <strong>${comment.username}</strong>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
8 at ${comment.time.strftime('%M/%d/%Y %H:%m')}
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
9 <blockquote>${comment.content}</blockquote>
615
06165fee45ab GenshiTutorial: make URLs dynamic so that the app could theoretically be mounted on some other SCRIPT_NAME.
cmlenz
parents: 611
diff changeset
10 <a href="${url('/reply/%s/' % comment.code)}">reply</a>
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
11 <xi:include href="comments.html" py:with="comments=comment.replies" />
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
12 </li>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
13 </ul>
Copyright (C) 2012-2017 Edgewall Software