mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 18:38:07 +00:00
Show alerts as disabled if the plugin is disabled
This commit is contained in:
parent
89bb99a5e5
commit
0159cb79c0
@ -64,7 +64,7 @@
|
||||
<div class="col-xs-8">
|
||||
<h5>
|
||||
{% for alert in service.alerts.all %}
|
||||
<span class="label label-{% if service.alerts_enabled %}success{% else %}warning{% endif %}">{{ alert }}</span>
|
||||
<span class="label label-{% if service.alerts_enabled and alert.enabled %}success{% else %}warning{% endif %}">{{ alert }}</span>
|
||||
{% endfor %}
|
||||
</h5>
|
||||
</div>
|
||||
|
@ -42,7 +42,7 @@
|
||||
<td title="{{ check.description }}">
|
||||
<a href="{% url "update-service" pk=service.id %}">{{service.name}}</a>
|
||||
{% for alert in service.alerts.all %}
|
||||
<span class="label label-{% if service.alerts_enabled %}success{% else %}warning{% endif %}">{{ alert }}</span>
|
||||
<span class="label label-{% if service.alerts_enabled and alert.enabled %}success{% else %}warning{% endif %}">{{ alert }}</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
{% for user in users %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user