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 }}
{% set ns.open_ul = True -%}
{% endif -%}
{% if ns.prev_item_id == entry.item.id -%}
{% else -%}
-
{{ entry.item.name }}
{% set ns.open_li = True -%}
{% endif -%}
{{ entry.date }} {{ r_to_star(entry.rating) }}
{% set ns.prev_item_date = entry.item.date -%}
{% set ns.prev_item_id = entry.item.id -%}
{% endfor -%}
{% if ns.open_li -%}
{% endif -%}
{% if ns.open_ul -%}
{% endif -%}