Dynastie/templates/blog.html

15 lines
365 B
HTML
Raw Normal View History

2012-07-08 16:23:39 +02:00
{% extends "templates/base.html" %}
{% 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 %}