{% 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 %}
