{% extends "layout.html" %} {% block content %}

Welcome to TimeTrack

Track your work hours easily and efficiently

{% if not g.user %} Please login or register to access your dashboard. {% else %}

Time Tracking

{% if active_entry %}

Currently Working

Started at: {{ active_entry.arrival_time.strftime('%Y-%m-%d %H:%M:%S') }}

{% if active_entry.project %}

Project: {{ active_entry.project.code }} - {{ active_entry.project.name }}

{% endif %}
00:00:00
{% if active_entry.is_paused %}

On break since {{ active_entry.pause_start_time.strftime('%H:%M:%S') }}

{% endif %} {% if active_entry.total_break_duration > 0 %}

Total break time: {{ '%d:%02d:%02d'|format(active_entry.total_break_duration//3600, (active_entry.total_break_duration%3600)//60, active_entry.total_break_duration%60) }}

{% endif %}
{% else %}

Not Currently Working

{% endif %}

Time Entry History

{% if history %} {% for entry in history %} {% endfor %}
Date Project Arrival Departure Work Duration Break Duration Actions
{{ entry.arrival_time.strftime('%Y-%m-%d') }} {% if entry.project %} {{ entry.project.code }} {{ entry.project.name }} {% else %} No project {% endif %} {{ entry.arrival_time.strftime('%H:%M:%S') }} {{ entry.departure_time.strftime('%H:%M:%S') if entry.departure_time else 'Active' }} {{ '%d:%02d:%02d'|format(entry.duration//3600, (entry.duration%3600)//60, entry.duration%60) if entry.duration is not none else 'In progress' }} {{ '%d:%02d:%02d'|format(entry.total_break_duration//3600, (entry.total_break_duration%3600)//60, entry.total_break_duration%60) if entry.total_break_duration is not none else '00:00:00' }} {% if entry.departure_time and not active_entry %} {% endif %}
{% else %}

No time entries recorded yet.

{% endif %}
{% endif %}

Easy Time Tracking

Simply click "Arrive" when you start working and "Leave" when you're done.

Break Management

Use the Pause button when taking breaks. Your break time is tracked separately.

Detailed History

View your complete work history with precise timestamps and durations.

Simple Interface

No complicated setup or configuration needed. Start tracking right away!

{% endblock %}