From df1af66980beaae3ef017927b72b7dd5826001fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 17 May 2017 21:32:31 +0300 Subject: [PATCH] Mention Telegram in the Welcome page, rearrange integrations, shrink data uris. --- hc/front/views.py | 1 + templates/front/channels.html | 62 +++++++++++++++++------------------ templates/front/welcome.html | 48 +++++++++++++++++---------- 3 files changed, 62 insertions(+), 49 deletions(-) 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 +