{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': _('Timer')} ] %} {{ page_header( icon_class='fas fa-stopwatch', title_text=_('Timer'), subtitle_text=_('Track your time with a visual timer'), breadcrumbs=breadcrumbs, actions_html=None ) }}
{% if active_timer %}
{% set elapsed_seconds = active_timer.current_duration_seconds %} {% set max_seconds = 8 * 3600 %} {% set progress = (elapsed_seconds / max_seconds * 100) if max_seconds > 0 else 0 %} {% set circumference = 2 * 3.14159 * 45 %} {% set stroke_dashoffset = circumference - (progress / 100 * circumference) %}
{{ active_timer.duration_formatted }}
{% if active_timer.project %} {{ active_timer.project.name }} {% if active_timer.task %} - {{ active_timer.task.name }} {% endif %} {% elif active_timer.client %} {{ active_timer.client.name }} ({{ _('Direct') }}) {% else %} {{ _('No project') }} {% endif %}
{% if active_timer.notes %}
{{ active_timer.notes }}
{% endif %}

{{ _('Estimated Completion') }}

{{ _('Calculating...') }}
{{ _('Based on average session duration') }}
{% else %}
00:00:00

{{ _('No active timer. Start one below!') }}

{% endif %}
{% if not active_timer %}

{{ _('Start New Timer') }}

{{ _('Select either a project or a client') }}

{% if templates %}
{% for template in templates %} {% endfor %} View all templates →
{% endif %}
{% endif %}
{% if recent_projects %}

{{ _('Recent Projects') }}

{% for project in recent_projects %} {% endfor %}
{% endif %}

{{ _("Today's Stats") }}

Total Hours
Active Timer {% if active_timer %}Running{% else %}Stopped{% endif %}
{% endblock %} {% block scripts_extra %} {% endblock %}