{% extends "layout.html" %} {% block content %}
{% if active_entry %}
00:00:00
{% if active_entry.is_paused %} On Break {% else %} Working {% endif %}
Started: {{ active_entry.arrival_time|format_datetime }}
{% if active_entry.project %}
Project: {{ active_entry.project.code }} - {{ active_entry.project.name }}
{% endif %} {% if active_entry.task %}
Task: {{ active_entry.task.title }}
{% endif %} {% if active_entry.notes %}
Notes: {{ active_entry.notes }}
{% endif %} {% if active_entry.is_paused %}
Break started: {{ active_entry.pause_start_time|format_time }}
{% endif %} {% if active_entry.total_break_duration > 0 %}
Total breaks: {{ active_entry.total_break_duration|format_duration }}
{% endif %}
{% else %}

Start Tracking Time

Select a project and task to begin tracking your work

{% endif %}
{{ today_hours|format_duration }}
Today
{{ week_hours|format_duration }}
This Week
{{ month_hours|format_duration }}
This Month
{{ active_projects|length }}
Active Projects

πŸ“‹ Recent Time Entries

{% if history %}
{% for entry in history %} {% endfor %}
Date Time Project / Task Duration Break Notes Actions
{{ entry.arrival_time.strftime('%d') }} {{ entry.arrival_time.strftime('%b') }}
{{ entry.arrival_time|format_time }} β†’ {{ entry.departure_time|format_time if entry.departure_time else 'Active' }}
{% if entry.project %} {{ entry.project.code }} {% endif %} {% if entry.task %} {{ entry.task.title }} {% elif entry.project %} {{ entry.project.name }} {% else %} No project {% endif %}
{{ entry.duration|format_duration if entry.duration is not none else 'In progress' }} {{ entry.total_break_duration|format_duration if entry.total_break_duration else '-' }} {{ entry.notes[:30] + '...' if entry.notes and entry.notes|length > 30 else entry.notes or '-' }}
{% if entry.departure_time and not active_entry %} {% if entry.arrival_time.date() >= today %} {% else %} {% endif %} {% endif %}
{% else %}
πŸ“­

No time entries yet

Start tracking your time to see entries here

{% endif %}
{% for entry in history %}
{{ entry.duration|format_duration if entry.duration is not none else 'Active' }}
{% if entry.project %}
{{ entry.project.code }} - {{ entry.project.name }}
{% endif %} {% if entry.task %}
πŸ“‹ {{ entry.task.title }}
{% endif %}
πŸ• {{ entry.arrival_time|format_time }} - {{ entry.departure_time|format_time if entry.departure_time else 'Active' }}
{% if entry.notes %}
πŸ“ {{ entry.notes }}
{% endif %}
{% endfor %}
{% endblock %}