diff --git a/hc/front/views.py b/hc/front/views.py index b42bd9cb..1bcb6c3a 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -521,6 +521,7 @@ def details(request, code): "project": check.project, "check": check, "channels": channels, + "enabled_channels": list(check.channel_set.all()), "timezones": pytz.all_timezones, "downtimes": check.downtimes(months=3), "is_new": "new" in request.GET, diff --git a/templates/front/details.html b/templates/front/details.html index 1eb7e008..0f4f9459 100644 --- a/templates/front/details.html +++ b/templates/front/details.html @@ -193,10 +193,10 @@
- {% if channel in check.channel_set.all %}ON{% else %}OFF{% endif %} + {% if channel in enabled_channels %}ON{% else %}OFF{% endif %} |
---|