comparison commentator/templates/comment.html @ 2:689b9d928dc8

add date, reflect api change of lxmlmiddleware
author k0s <k0scist@gmail.com>
date Tue, 26 Jan 2010 23:00:51 -0500
parents 1c95a3fa76c1
children
comparison
equal deleted inserted replaced
1:aebfbb10aefb 2:689b9d928dc8
7 py:strip="True"> 7 py:strip="True">
8 <div class="comments"> 8 <div class="comments">
9 <div py:for="comment in comments" class="comment"> 9 <div py:for="comment in comments" class="comment">
10 <a py:strip="not comment['link']" href="${comment['link']}"> 10 <a py:strip="not comment['link']" href="${comment['link']}">
11 ${comment['author']} 11 ${comment['author']}
12 </a> 12 </a>${comment['date'].strftime(date_format)}
13 <p>${comment['body']}</p> 13 <p>${comment['body']}</p>
14 </div> 14 </div>
15 15
16
16 <form method="post" action="${action}"> 17 <form method="post" action="${action}">
18
19 <py:if test="bool(request.remote_user)">
20 <input type="hidden" name="author" value="${request.remote_user}"/>
21 </py:if>
17 <dl> 22 <dl>
23 <py:if test="not request.remote_user">
18 <dt>Name:</dt><dd><input type="text" name="author"/></dd> 24 <dt>Name:</dt><dd><input type="text" name="author"/></dd>
25 </py:if>
19 <dt>URL:</dt><dd><input type="text" name="link"/></dd> 26 <dt>URL:</dt><dd><input type="text" name="link"/></dd>
20 <textarea name="body"></textarea> 27 <textarea name="body"></textarea>
21 </dl> 28 </dl>
22 <input type="submit" value="Comment"/> 29 <input type="submit" value="Comment"/>
23 </form> 30 </form>