{% extends "base.html" %} {% block content %}
| Date | Check-in | Check-out | Working Hours | Status | Source |
|---|---|---|---|---|---|
| {{ r.date.strftime('%Y-%m-%d') }} | {% if r.source == 'Desktime' %} {{ r.desktime_log.first_activity.strftime('%H:%M') if r.desktime_log and r.desktime_log.first_activity else '--' }} {% else %} {{ r.check_in_time.strftime('%H:%M') if r.check_in_time else '--' }} {% endif %} | {% if r.source == 'Desktime' %} {{ r.desktime_log.last_activity.strftime('%H:%M') if r.desktime_log and r.desktime_log.last_activity else '--' }} {% else %} {{ r.check_out_time.strftime('%H:%M') if r.check_out_time else '--' }} {% endif %} | {% if r.source == 'Desktime' and r.desktime_log %} {{ "%.2f"|format(r.desktime_log.productive_hours) }} {% else %} {{ "%.2f"|format(r.working_hours) if r.working_hours else '0.00' }} {% endif %} |
{% if r.split_status %}
{{ r.split_status }}
Split Half-Day Leave
{% else %}
{% if r.status == 'Holiday' and r.source == 'Weekend' %}
Weekend Off
{% else %}
{{ r.status or '--' }}
{% endif %}
{% endif %}
|
{{ r.source or '--' }} |