{% extends "base.html" %} {% block title %}Device Registry{% endblock %} {% block content %}

Device Registry

iOS devices that have opened the JanitorialQC app. Records update on every app launch — Last Seen reflects the most recent foreground.

{{ devices|length }} device{{ 's' if devices|length != 1 }}
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %} {% endfor %} {% endwith %}
{# ── Device Table ──────────────────────────────────────────────────── #}
Registered Devices sorted by most recently active
{% if devices %}
{% for d in devices %} {% set app_ver = d.app_version or '—' %} {% endfor %}
Device User App Ver. iOS Ver. Last Seen Registered
{{ d.device_name or '—' }} {{ d.user.display_name if d.user else '—' }} {% if d.user %}
{{ d.user.username }} {% endif %}
{{ app_ver }} {{ d.ios_version or '—' }} {{ d.last_seen_at.strftime('%b %-d, %Y') }}
{{ d.last_seen_at.strftime('%I:%M %p') }}
{{ d.registered_at.strftime('%b %-d, %Y') }}
{% else %}
No devices registered yet. Devices appear here once the iOS app opens while online.
{% endif %}
{# ── Send Update Notice ────────────────────────────────────────────── #}
Send Update Notice

Sends an in-app notification to every user whose device is running an app version older than the version you enter. Delivered within 60 seconds via the app's background poll. One notification per user (even if they have multiple devices).

Devices running a version below this will receive the notice.
{% if devices %}

Version breakdown

{% endif %}
{% endblock %}