Dynastie/dynastie/templates/category.html
Gregory Soutade 62ed52d797 Fix bugs:
* Can't create categories and tags
	* Recursively create directories
2014-11-13 19:25:02 +01:00

16 lines
690 B
HTML
Executable File

{% extends "base.html" %}
{% block content %}
<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/>
{% if categories|length == 0 %}
<b>Any category available</b><br/><br/>
{% else %}
<table>
{% for category in categories %}
<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>
{% endfor %}
</table>
{% endif %}
<li><a href="/category/add/{{ blog.id }}">Add a category</a></li>
{% endblock %}