Dynastie/dynastie/templates/category.html
Grégory Soutadé 0d05f8346b Do a cleaner package.
Add an Apache sample configuration file
Update README with better installation instructions
2014-02-02 14:21:16 +01:00

16 lines
676 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">Add a category</a></li>
{% endblock %}