Dynastie/dynastie/templates/blog.html

15 lines
355 B
HTML
Raw Permalink Normal View History

{% extends "base.html" %}
2012-07-08 16:23:39 +02:00
{% block content %}
{% if blogs|length == 0 %}
<b>Any blog available</b><br/><br/>
{% else %}
{% for blog in blogs %}
<li><a href="/blog/{{ blog.id }}">{{ blog.name }} : {{ blog.title }}</a></li>
{% endfor %}
{% endif %}
{% if user.is_superuser %}
<li><a href="/blog/add">Add a blog</a></li>
{% endif %}
{% endblock %}