total mess: some random experiments with images and lqc's dvcs
[redakcja.git] / apps / wiki_img / templates / wiki_img / diff_table.html
diff --git a/apps/wiki_img/templates/wiki_img/diff_table.html b/apps/wiki_img/templates/wiki_img/diff_table.html
new file mode 100644 (file)
index 0000000..818c38c
--- /dev/null
@@ -0,0 +1,21 @@
+{% load i18n %}
+<table class="diff_table">
+       <thead>
+               <tr>
+                       <th colspan="2">{% trans "Old version" %}</th>
+                       <th colspan="2">{% trans "New version" %}</th>
+               </tr>
+       </thead>
+<tbody>
+{% for an, a, bn, b, has_change in changes %}
+
+<tr class="{% if has_change %}change{% endif %}">
+<td>{{an}}</td>
+<td class="left">{{ a|safe }}&nbsp;</td>
+<td>{{bn}}</td>
+<td class="right">{{ b|safe }}&nbsp;</td>
+</tr>
+
+{% endfor %}
+</tbody>
+</table>
\ No newline at end of file