{# 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 %} {# Subscriber-cap (licence limit) banner -- independent of the expiry banner above. #} {% if cap_status %} {% if cap_status.enforcing %}
Over your licence limit: {{ cap_status.count }} subscribers are authenticating against a licensed cap of {{ cap_status.cap }}. The newest {{ cap_status.over_by }} login{{ cap_status.over_by|pluralize }} — refused until you upgrade or remove subscribers. {% if user.is_superuser or current_membership and current_membership.role == 'owner' %}Upgrade your licence.{% endif %}
{% else %}
Over your licence limit: {{ cap_status.count }} subscribers against a licensed cap of {{ cap_status.cap }}. In {{ cap_status.days_left }} day{{ cap_status.days_left|pluralize }} the newest {{ cap_status.over_by }} login{{ cap_status.over_by|pluralize }} will be refused unless you upgrade or remove subscribers. {% if user.is_superuser or current_membership and current_membership.role == 'owner' %}Upgrade your licence.{% endif %}
{% endif %} {% if cap_status.unmanaged %}
{{ cap_status.unmanaged }} login{{ cap_status.unmanaged|pluralize }} exist that RadiusForge didn’t create (added straight to the database). These count toward your licence limit.
{% endif %} {% endif %}