{# Licence banner (base.html, staff only); quiet when healthy, louder as it runs down. #} {% if license_status %} {% if license_status.state == "locked" %}
Read-only: this RadiusForge licence has lapsed, so changes are disabled. Subscribers are still being authenticated. {% if user.is_superuser or current_membership and current_membership.role == 'owner' %}Install a licence to re-enable changes.{% else %}Ask your Owner to renew the licence.{% endif %}
{% elif license_status.state == "grace" %}
Your licence expired on {{ license_status.expires }}. You have {{ license_status.grace_left }} day{{ license_status.grace_left|pluralize }} of grace before changes are disabled. {% if user.is_superuser or current_membership and current_membership.role == 'owner' %}Renew now.{% endif %}
{% elif license_status.state == "invalid" %}
The installed licence file could not be verified and is being ignored. {% if user.is_superuser or current_membership and current_membership.role == 'owner' %}Upload a valid licence.{% endif %}
{% elif license_status.state == "trial" %}
Trial: {{ license_status.days_left }} day{{ license_status.days_left|pluralize }} left (until {{ license_status.expires }}). {% if user.is_superuser or current_membership and current_membership.role == 'owner' %}Install your licence to continue past the trial.{% endif %}
{% elif license_status.state == "licensed" and license_status.days_left <= 14 %}
Your licence renews in {{ license_status.days_left }} day{{ license_status.days_left|pluralize }} (on {{ license_status.expires }}). {% if user.is_superuser or current_membership and current_membership.role == 'owner' %}View licence.{% endif %}
{% endif %} {% endif %}