diff --git a/python/nav/web/templates/alertprofiles/address_list.html b/python/nav/web/templates/alertprofiles/address_list.html index d10a8e07b3..88a7dbf7c2 100644 --- a/python/nav/web/templates/alertprofiles/address_list.html +++ b/python/nav/web/templates/alertprofiles/address_list.html @@ -62,6 +62,8 @@ {% if not a.type.supported %}
{{ a.type.name }}: No longer supported
+ {% elif a.type.blacklisted_reason %} +
{{ a.type.name }} is currently non-functional: {{ a.type.blacklisted_reason }}
{% else %} {{ a.type.name }} {% endif %} diff --git a/python/nav/web/templates/alertprofiles/subscription_form.html b/python/nav/web/templates/alertprofiles/subscription_form.html index dd6ba3d899..f576c2e30a 100644 --- a/python/nav/web/templates/alertprofiles/subscription_form.html +++ b/python/nav/web/templates/alertprofiles/subscription_form.html @@ -44,8 +44,9 @@

{{ s.filter_group.name }} {% if not s.alert_address.type.supported %}
{% endif %} + {% if s.alert_address.type.blacklisted_reason %}
{% endif %} {{ s.alert_address }} - {% if not s.alert_address.type.supported %}
{% endif %} + {% if not s.alert_address.type.supported or s.alert_address.type.blacklisted_reason %}
{% endif %} {{ s.get_type_display|capfirst }} {{ s.ignore_resolved_alerts|yesno:"Yes,No" }} diff --git a/python/nav/web/templates/alertprofiles/timeperiods.html b/python/nav/web/templates/alertprofiles/timeperiods.html index 51221d3e7e..b7d6c863c7 100644 --- a/python/nav/web/templates/alertprofiles/timeperiods.html +++ b/python/nav/web/templates/alertprofiles/timeperiods.html @@ -50,8 +50,9 @@ Watch {{ b.filter_group.name }}, send to {% if not b.alert_address.type.supported %}
{% endif %} + {% if b.alert_address.type.blacklisted_reason %}
{% endif %} {{ b.alert_address.address }} - {% if not b.alert_address.type.supported %}
{% endif %}, + {% if not b.alert_address.type.supported or b.alert_address.type.blacklisted_reason %}
{% endif %}, {{ b.get_type_display }}. {% endfor %}