src/cm/templates/site/macros/text_comments.html
changeset 454 b7a092a52eae
parent 412 3b3d7126fce7
child 455 33c7e20efcb7
--- a/src/cm/templates/site/macros/text_comments.html	Tue Jul 31 16:37:23 2012 +0200
+++ b/src/cm/templates/site/macros/text_comments.html	Mon Aug 06 13:42:15 2012 +0200
@@ -1,30 +1,24 @@
 {% 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;">
-
+<div class="pagebreakhere" style="font-size: 10pt;">
+<hr />
+{% for comment in comments %}
+	<div>
     {% 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 }}
-  {% if comment.tags %}
-  <br />&nbsp;<br />
-    tags: {{ comment.tags }}
-  {% endif %}
-	</td>
-</tr>
-</table>
-<hr>
+	</div>
+	<div style="border-bottom: thin solid black; margin-bottom: 5pt; padding-bootom: 2pt; padding-left: 10pt;">
+    <p>
+      {{ 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 }}
+    </p>
+    {% if comment.tags %}
+      <p style="font-size: 8pt;">tags: {{ comment.tags }}</p>
+    {% endif %}
+	</div>
 {% endfor %}
 </div>