Parent: [c4cd35] (diff)

Child: [75e640] (diff)

Download this file

lib.html    37 lines (34 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<py:def function="display_comment(comment)">
<div id="comment-${comment._id}">
<div class="forge_comment_body">
<div class="user_info">
<img src="/images/error.png" alt="icon" width="50" height="50"/>
<br/>
${comment.author().display_name}
</div>
<a py:if="c.user._id and comment.author_id==c.user._id"
href="comments/$comment._id/delete">[X]</a>
<br/>
${Markup(g.markdown.convert(comment.text))}
${comment.posted_ago}
<div class="reply title-pane closed">
<a class="title" href="#">Reply</a>
<div class="content">
<form method="post" action="comments/$comment._id/reply">
<textarea rows="4" cols="60" name="text"></textarea><br/>
<input type="submit" value="Save Comment"/>
</form>
</div>
</div>
</div>
<div class="forge_comment_replies">
<py:for each="cc in comment.replies()">
${display_comment(cc)}
</py:for>
</div>
</div>
</py:def>
</html>