{% extends "base.html" %} {% block content %}
| Time | Direction | Location | Photo | Status |
|---|---|---|---|---|
| {{ p.punch_time.strftime('%H:%M:%S') }} | {{ p.direction|upper }} | {% if p.latitude and p.longitude %} {{ p.location_note or ("%.5f"|format(p.latitude) ~ ", " ~ "%.5f"|format(p.longitude)) }} {% elif p.location_note %} {{ p.location_note }} {% else %} Not captured {% endif %} |
{% if p.photo_path %}
|
{% set is_self = (p.source_name == 'self') %} {% set status = p.approval_status or ('auto' if not is_self else 'pending') %} {% if is_self %} {% if status == 'approved' %} Approved {% elif status == 'rejected' %} Rejected {% else %} Pending {% endif %} {% else %} Device {% endif %} |
| No punches yet for this day. | ||||