{% set dates = [] %}
{% for event in events | reverse %}
{% if event.public or not public_only %}
{% if not event.created_at.date() == dates[-1] %}
{% set _ = dates.append(event.created_at.date()) %}
{{ event.created_at.date() }}
{% endif %}
{{ event.created_at.time().strftime("%H:%M") }}
{{ event.actor.username or event.user.username }}
{{ event.description }}
{% if event.comment %}
{{ event.comment }}
{% endif %}
{% endif %}
{% endfor %}
{% endmacro %}
{% macro profile_status(profile) %}
{% set status = profile.STATUSES[profile.status] %}
{{ status[1] }}
{% if profile.transition %}
{% set transition = profile.STATUSES[profile.transition] %}
{{ transition[1] }}
({% trans %}complete manually{% endtrans %})
{% endif %}
{% endmacro %}
{% macro infobox(title, text, color, icon) %}