{% extends "base.html" %} {% block title %}My Shifts — Website Checker{% endblock %} {% block content %}
{{ checked }} / {{ total }} checked  ·  {{ pct }}%
🔍
{# Group sites by check_type #} {% set daily_sites = sites | selectattr('check_type', 'equalto', 'daily') | list %} {% set weekly_sites = sites | selectattr('check_type', 'equalto', 'weekly') | list %} {% set other_sites = sites | rejectattr('check_type', 'in', ['daily','weekly']) | list %} {% for group_name, group_sites in [('Daily', daily_sites), ('Weekly', weekly_sites), ('Other', other_sites)] %} {% if group_sites %}
{{ group_name }} {{ group_sites | selectattr('check_id') | list | length }} / {{ group_sites | length }} checked
{% set g_total = group_sites | length %} {% set g_checked = group_sites | selectattr('check_id') | list | length %} {% set g_pct = ((g_checked / g_total) * 100) | int if g_total > 0 else 0 %}
{% for site in group_sites %}
{% if site.check_id %} {% else %} {% endif %}
{{ site.name }} {{ site.check_type | capitalize }} {% if site.check_id and site.checked_at %} ✔ {{ site.checked_at.strftime('%H:%M') }} {% endif %}
{{ site.url }}
{% if site.site_note %} 📌 {{ site.site_note }} {% endif %} {% if site.shift_names %} 🕐 {{ site.shift_names }} {% endif %}
{% if site.check_id %} ✔ Checked
{% else %} {% endif %}
{% if site.user_note %}
📝 {{ site.user_note }}
{% endif %}
{% endfor %}
{% endif %} {% endfor %} {% if not sites %}

No sites to check today, or you're all done!

{% endif %}
{% endblock %}