16 lines
617 B
HTML
16 lines
617 B
HTML
{% extends "templates/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 }}">Delete</a></td></tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
<li><a href="/category/add">Add a category</a></li>
|
|
{% endblock %}
|