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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
{% load com %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
{% load i18n %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
<div class="pagebreakhere">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
{% for comment in comments %} <!--  TODO check DATABASE QUERY IMPACT (select for each user ? -->
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
<table>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
<tr>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
	<td style="vertical-align: top;">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
    {% if comment.is_reply %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
    	({{ comment.num }}) 
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
    {% else %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
        <b>[{{ comment.num }}]</b> 
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
    {% endif %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
	</td>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    15
	<td>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    16
	{{ comment.title }}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    17
	<br />
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    18
	{% blocktrans with comment.get_name as name and comment.created|local_date:tz as date %}by {{ name }} on {{ date }}{% endblocktrans %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    19
	<br>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    20
	{{ comment.content }}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    21
	</td>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    22
</tr>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    23
</table>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    24
<hr>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    25
{% endfor %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    26
</div>