Skip to content

Commit

Permalink
Show blacklisted reason in time period listing
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland authored and lunkwill42 committed Sep 7, 2023
1 parent 5567ba4 commit 7fd98f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/nav/web/templates/alertprofiles/timeperiods.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
Watch <em><a href="{% url 'alertprofiles-filter_groups-detail' b.filter_group.id %}">{{ b.filter_group.name }}</a></em>,
send to
{% if not b.alert_address.type.supported %}<div class="alert-box error with-icon inside-table" title="{{ b.alert_address.type.name }} is no longer supported">{% endif %}
{% if b.alert_address.type.blacklisted_reason %}<div class="alert-box warning inside-table" title="{{ b.alert_address.type.name }} is blacklisted: {{b.alert_address.type.blacklisted_reason}}">{% endif %}
<em><a href="{% url 'alertprofiles-address-detail' b.alert_address.id %}">{{ b.alert_address.address }}</a></em>
{% if not b.alert_address.type.supported %}</div>{% endif %},
{% if not b.alert_address.type.supported or b.alert_address.type.blacklisted_reason %}</div>{% endif %},
{{ b.get_type_display }}.
</li>
{% endfor %}
Expand Down

0 comments on commit 7fd98f6

Please sign in to comment.