diff --git a/hc/front/views.py b/hc/front/views.py index 61107246..bd67dd6c 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -105,6 +105,7 @@ def index(request): "enable_pushbullet": settings.PUSHBULLET_CLIENT_ID is not None, "enable_pushover": settings.PUSHOVER_API_TOKEN is not None, "enable_discord": settings.DISCORD_CLIENT_ID is not None, + "enable_telegram": settings.TELEGRAM_TOKEN is not None, "registration_open": settings.REGISTRATION_OPEN } diff --git a/templates/front/channels.html b/templates/front/channels.html index dd1c0425..604a162f 100644 --- a/templates/front/channels.html +++ b/templates/front/channels.html @@ -161,6 +161,28 @@ Add Integration + {% if enable_pushover %} +
  • + Pushover icon + +

    Pushover

    +

    Receive instant push notifications on your phone or tablet.

    + + Add Integration +
  • + {% endif %} + {% if enable_pushbullet %} +
  • + Pushbullet icon + +

    Pushbullet

    +

    Pushbullet connects your devices, making them feel like one.

    + + Add Integration +
  • + {% endif %}
  • PagerDuty icon @@ -188,37 +210,6 @@ Add Integration
  • -
  • - OpsGenie icon - -

    OpsGenie

    -

    Alerting & Incident Management Solution for Dev & Ops.

    - - Add Integration -
  • - {% if enable_pushbullet %} -
  • - Pushbullet icon - -

    Pushbullet

    -

    Pushbullet connects your devices, making them feel like one.

    - - Add Integration -
  • - {% endif %} - {% if enable_pushover %} -
  • - Pushover icon - -

    Pushover

    -

    Receive instant push notifications on your phone or tablet.

    - - Add Integration -
  • - {% endif %} {% if enable_discord %}
  • Add Integration
  • {% endif %} +
  • + OpsGenie icon + +

    OpsGenie

    +

    Alerting & Incident Management Solution for Dev & Ops.

    + + Add Integration +