Skip to content

Commit

Permalink
Show blacklisted reason in subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland authored and lunkwill42 committed Sep 7, 2023
1 parent 7fd98f6 commit aea5b83
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ <h4>
<td><a href="{% url 'alertprofiles-filter_groups-detail' s.filter_group.id %}">{{ s.filter_group.name }}</a></td>
<td>
{% if not s.alert_address.type.supported %}<div class="alert-box error with-icon inside-table" title="{{ s.alert_address.type.name }} is no longer supported">{% endif %}
{% if s.alert_address.type.blacklisted_reason %}<div class="alert-box warning inside-table" title="{{ s.alert_address.type.name }} is blacklisted: {{ s.alert_address.type.blacklisted_reason }}">{% endif %}
<a href="{% url 'alertprofiles-address-detail' s.alert_address.id %}">{{ s.alert_address }}</a>
{% if not s.alert_address.type.supported %}</div>{% endif %}
{% if not s.alert_address.type.supported or s.alert_address.type.blacklisted_reason %}</div>{% endif %}
</td>
<td>{{ s.get_type_display|capfirst }}</td>
<td>{{ s.ignore_resolved_alerts|yesno:"Yes,No" }}</td>
Expand Down

0 comments on commit aea5b83

Please sign in to comment.