{% extends "template.html" -%} {% block content -%}

User: {{ name }}


{% set ns = namespace(prev_item_date="", prev_item_id=None, open_li = False, open_ul = False) -%} {% for entry in entries -%} {% if ns.prev_item_id != entry.item.id and ns.prev_item_id != None -%} {% set ns.open_li = False -%} {% endif -%} {% if entry.item.date != ns.prev_item_date -%} {% if ns.prev_item_date != "" -%} {% set ns.open_ul = False -%} {% endif -%}

{{ entry.item.date }}

{% endif -%}
{% endblock -%}