2014-02-02 14:21:16 +01:00
|
|
|
{% extends "base.html" %}
|
2012-07-08 16:23:39 +02:00
|
|
|
|
|
|
|
{% 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 %}
|
2014-11-13 19:25:02 +01:00
|
|
|
<li><a href="/category/add/{{ blog.id }}">Add a category</a></li>
|
2012-07-08 16:23:39 +02:00
|
|
|
{% endblock %}
|