2012-07-08 16:23:39 +02:00
|
|
|
{% extends "templates/base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2012-11-17 09:46:33 +01:00
|
|
|
<a href="/blog/{{ blog.id }}?page=0">Home</a> <a href="/category/{{ blog.id }}">Categories</a> <a href="/tag/{{ blog.id }}">Tags</a><br/><br/>
|
2012-07-08 16:23:39 +02:00
|
|
|
{% if categories|length == 0 %}
|
|
|
|
<b>Any category available</b><br/><br/>
|
|
|
|
{% else %}
|
2012-10-04 21:49:33 +02:00
|
|
|
<table>
|
2012-07-08 16:23:39 +02:00
|
|
|
{% for category in categories %}
|
2012-12-24 09:35:59 +01:00
|
|
|
<tr><td>{{ category.id }}</td><td>{{ category.name }}</td><td><a href="/category/edit/{{ category.id }}">Edit</a></td><td><a href="/category/delete/{{ category.id }}" onclick="return confirm('Do you really want to delete this item ?')">Delete</a></td></tr>
|
2012-07-08 16:23:39 +02:00
|
|
|
{% endfor %}
|
2012-10-04 21:49:33 +02:00
|
|
|
</table>
|
2012-07-08 16:23:39 +02:00
|
|
|
{% endif %}
|
2012-10-09 20:47:12 +02:00
|
|
|
<li><a href="/category/add">Add a category</a></li>
|
2012-07-08 16:23:39 +02:00
|
|
|
{% endblock %}
|