{% extends "layout.html" %} {% block title %}{{ session.username }}'s articles{% endblock %} {% block body %} {% set statuses = { 'published': 'success', 'refused': 'error', 'waiting': 'warning', 'draft': '' } -%}

Your articles

{% if articles == [] %} {% else %} {% for article in articles %} {% endfor %} {% endif %}
Nothing here yet...
TitleCreationLast updateStatusOperation
{{ article['title'] }} {{ article['creation_date'] }} {%- if not article['lastupdate_date'] -%} - {%- else -%} {{ article['lastupdate_date'] }} {% endif -%} {{ article['status']|title }} {%- if article['status'] != 'published' -%} {% endif %}
{% endblock %}