Add primary comment support

This commit is contained in:
2012-10-04 21:49:33 +02:00
parent 6039dd7a8d
commit d30bb18e43
10 changed files with 232 additions and 70 deletions

View File

@@ -5,9 +5,11 @@
{% if categories|length == 0 %}
<b>Any category available</b><br/><br/>
{% else %}
<table>
{% for category in categories %}
<hr><hl>{{ category.id }}</hl><hl>{{ category.name }}</hl><hl><a href="/category/edit/{{ category.id }}">Edit</a></hl>{% if user.is_superuser %}<hl><a href="/category/delete/{{ category.id }}">Delete</a></hl>{% endif %}</hr>
<tr><td>{{ category.id }}</td><td>{{ category.name }}</td><td><a href="/category/edit/{{ category.id }}">Edit</a></td>{% if user.is_superuser %}<td><a href="/category/delete/{{ category.id }}">Delete</a></td>{% endif %}</tr>
{% endfor %}
</table>
{% endif %}
{% if user.is_superuser %}
<li><a href="/category/add">Add a category</a></li>