src/cm/templates/site/macros/text_comments.html
author rbernard
Fri, 12 Feb 2010 21:58:53 +0100
changeset 172 9a355903350d
parent 0 40c8f766c9b8
child 412 3b3d7126fce7
permissions -rw-r--r--
renaming variables

{% load com %}
{% load i18n %}
<div class="pagebreakhere">
{% for comment in comments %} <!--  TODO check DATABASE QUERY IMPACT (select for each user ? -->
<table>
<tr>
	<td style="vertical-align: top;">

    {% if comment.is_reply %}
    	({{ comment.num }}) 
    {% else %}
        <b>[{{ comment.num }}]</b> 
    {% endif %}
	</td>
	<td>
	{{ comment.title }}
	<br />
	{% blocktrans with comment.get_name as name and comment.created|local_date:tz as date %}by {{ name }} on {{ date }}{% endblocktrans %}
	<br>
	{{ comment.content }}
	</td>
</tr>
</table>
<hr>
{% endfor %}
</div>