{% for label, value in [
('Arrival', day_view.arrival or '-'),
('Left', day_view.left or '-'),
('Productive', day_view.productive_str),
('DeskTime', day_view.desktime_str),
('Time at work', day_view.at_work_str),
] %}
{% endfor %}
Prod / Eff
{% if day_view.productivity is not none %}
{{ '%.2f'|format(day_view.productivity) }}%
{% else %}-{% endif %}
Eff:
{% if day_view.efficiency is not none %}
{{ '%.2f'|format(day_view.efficiency) }}%
{% else %}-{% endif %}
{% for title, apps, color in [
('Productive apps – day', day_productive_apps, 'bg-success'),
('Unproductive apps – day', day_unproductive_apps, 'bg-danger'),
] %}
| App / Site | Time |
{% if apps %}
{% for a in apps %}
| {{ a.name }} |
{{ a.duration_str }} |
{% endfor %}
{% else %}
| No data |
{% endif %}
{% endfor %}