{% macro render_tags(tags) %} {% for tag in tags %} {% if not tag in ['auto-logged', 'auto-timed'] %}  {{ tag }} {% endif %} {% endfor %} {% endmacro %} {% macro render_delta(fact) %} +{{ fact.delta }}{% if not fact.end_time %}...{% endif %} {% endmacro %} {% macro render_facts(facts, hide_date=False, hide_activity=False, hide_category=False, hide_tags=False, hide_actions=False) %} {% if not hide_category %} {% endif %} {% if not hide_activity %} {% endif %} {% if not hide_tags %} {% endif %} {% if not hide_actions %} {% endif %} {% for fact in facts %} {% if not hide_category %} {% endif %} {% if not hide_activity %} {% endif %} {% if not hide_category %} {% endif %} {% if not hide_actions %} {% endif %} {% endfor %}
Start DurationCategoryActivityDescriptionTagsActions
{% if hide_date %} {{ fact.start_time.strftime('%H:%M') }} {% else %} {{ fact.start_time.strftime('%d.%m.%Y %H:%M') }} {% endif %} {{ render_delta(fact) }}{{ fact.category }}{{ fact.activity }}{% if fact.description %}{{ fact.description|replace('\n','
')|safe|urlize }}{% endif %}
{{ render_tags(fact.tags) }}
{% endmacro %}