{% extends "base.html" %} {% block title %}View · Alerts{% endblock %} {% block content %}

Active alerts

Live countdown to expiration. Reminders are dispatched automatically by email per the configured schedule.

today: {{ today_iso }} {% if current_user.is_admin %} + New alert {% endif %}
{% if alerts %}
{% for a in alerts %} {% set state = 'is-expired' if a.days_left < 0 else ('is-critical' if a.days_left < 7 else ('is-warning' if a.days_left < 30 else '')) %} {% set state_text = 'EXPIRED' if a.days_left < 0 else ('CRITICAL' if a.days_left < 7 else ('WARNING' if a.days_left < 30 else 'NOMINAL')) %}

{{ a.title }}

{% if a.category %}{{ a.category }}{% endif %}
{% if a.description %}

{{ a.description }}

{% endif %}
{{ a.title }} · expires {{ a.expiration_date }}
days
hours
min
sec
{{ state_text }} reminders: {{ a.reminder_days|join(', ') }}d
{% endfor %}
{% else %}
▮▮

No active alerts.

{% if current_user.is_admin %}

Add your first one — license renewals, certificates, contracts, …

Create the first alert {% else %}

Ask an administrator to create alerts for your team.

{% endif %}
{% endif %} {% endblock %}