{% extends "base.html" %} {% block content %} {% if running %}
Timer running: {{ running.task_title }}
{% if running.project_name %}
{{ running.project_name }}
{% endif %}
--:--
{% endif %}
Today 7 Days 30 Days 90 Days
{% if daily_totals %}
Daily Summary
{% for day, mins in daily_totals | dictsort(reverse=true) %}
{{ (mins / 60) | round(1) }}h
{{ day }}
{% endfor %}
{% endif %} {% if entries %}
{% set current_date = namespace(value='') %} {% for entry in entries %} {% set entry_date = entry.start_at.strftime('%A, %B %-d') if entry.start_at else 'Unknown' %} {% if entry_date != current_date.value %}
{{ entry_date }}
{% set current_date.value = entry_date %} {% endif %}
{% if entry.end_at is none %}
{% endif %} {% if entry.project_name %} {{ entry.project_name }} {% endif %} {% if entry.domain_name %} {{ entry.domain_name }} {% endif %} {% if entry.end_at is none %} running {% elif entry.duration_minutes %} {% if entry.duration_minutes >= 60 %} {{ (entry.duration_minutes / 60) | int }}h {{ entry.duration_minutes % 60 }}m {% else %} {{ entry.duration_minutes }}m {% endif %} {% else %} -- {% endif %} {% if entry.start_at %} {{ entry.start_at.strftime('%-I:%M %p') }} {% if entry.end_at %} - {{ entry.end_at.strftime('%-I:%M %p') }} {% endif %} {% endif %}
{% endfor %}
{% else %}
No time entries in the last {{ days }} days
Start a timer from any task to begin tracking time
{% endif %} {% endblock %}