diff --git a/templates/front/.channels.html.swp b/templates/front/.channels.html.swp new file mode 100644 index 00000000..40750c48 Binary files /dev/null and b/templates/front/.channels.html.swp differ diff --git a/templates/front/channels.html b/templates/front/channels.html index e6470d48..0577805b 100644 --- a/templates/front/channels.html +++ b/templates/front/channels.html @@ -6,109 +6,112 @@ {% block content %}
- {% if messages %} -
- {% for message in messages %} +{% if messages %} +
+ {% for message in messages %}

{{ message }}

- {% endfor %} -
- {% endif %} - -
- {% if channels %} - - - - - - - - - - {% for ch in channels %} - {% with n=ch.latest_notification %} - - - + + + {% endwith %} + {% endfor %} +
Name, DetailsAssigned ChecksStatusLast Notification
- {{ ch.get_kind_display }} icon - -
- {% if ch.name %} - {{ ch.name }} - {% else %} -
unnamed
- {% endif %} -
- {% if ch.kind == "email" %} + {% endfor %} +
+{% endif %} + +
+ {% if channels %} + + + + + + + + + + {% for ch in channels %} + {% with n=ch.latest_notification %} + + + - - + + - + - + - - - {% endwith %} - {% endfor %} -
Name, DetailsAssigned ChecksStatusLast Notification
+ {{ ch.get_kind_display }} icon + +
+ {% if ch.name %} + {{ ch.name }} + {% else %} +
unnamed
+ {% endif %} +
+ {% if ch.kind == "email" %} Email to {{ ch.email_value }} {% if ch.email_notify_down and not ch.email_notify_up %} - (down only) + (down only) {% endif %} {% if ch.email_notify_up and not ch.email_notify_down %} - (up only) + (up only) {% endif %} - {% elif ch.kind == "pd" %} + {% elif ch.kind == "pd" %} PagerDuty account {{ ch.pd_account }} - {% elif ch.kind == "po" %} + {% elif ch.kind == "po" %} Pushover ({{ ch.po_priority }} priority) - {% elif ch.kind == "slack" %} + {% elif ch.kind == "slack" %} Slack {% if ch.slack_team %} - team {{ ch.slack_team }}, - channel {{ ch.slack_channel }} + team {{ ch.slack_team }}, + channel {{ ch.slack_channel }} {% endif %} - {% elif ch.kind == "telegram" %} + {% elif ch.kind == "telegram" %} Telegram {% if ch.telegram_type == "group" %} - chat {{ ch.telegram_name }} + chat {{ ch.telegram_name }} {% elif ch.telegram_type == "private" %} - user {{ ch.telegram_name }} + user {{ ch.telegram_name }} {% endif %} - {% elif ch.kind == "sms" %} + {% elif ch.kind == "sms" %} SMS to {{ ch.sms_number }} - {% elif ch.kind == "trello" %} + {% elif ch.kind == "trello" %} Trello board {{ ch.trello_board_list|first }}, list {{ ch.trello_board_list|last }} - {% elif ch.kind == "matrix" %} + {% elif ch.kind == "matrix" %} Matrix {{ ch.value }} - {% elif ch.kind == "whatsapp" %} + {% elif ch.kind == "whatsapp" %} WhatsApp to {{ ch.sms_number }} {% if ch.whatsapp_notify_down and not ch.whatsapp_notify_up %} - (down only) + (down only) {% endif %} {% if ch.whatsapp_notify_up and not ch.whatsapp_notify_down %} - (up only) + (up only) {% endif %} - {% elif ch.kind == "zulip" %} + {% elif ch.kind == "zulip" %} Zulip {% if ch.zulip_type == "stream" %} stream {{ ch.zulip_to}} {% elif ch.zulip_type == "private" %} user {{ ch.zulip_to}} {% endif %} - {% else %} + {% else %} {{ ch.get_kind_display }} - {% endif %} -
-
-
-
- {{ ch.n_checks }} check{{ ch.n_checks|pluralize }} -
-
- {% if ch.kind == "email" and not ch.email_verified %} + {% endif %} + + + +
+ {{ ch.n_checks }} check{{ ch.n_checks|pluralize }} +
+
+ {% if ch.kind == "email" and not ch.email_verified %} Unconfirmed - {% elif ch.kind == "hipchat" or ch.kind == "pagerteam" %} + {% elif ch.kind == "hipchat" or ch.kind == "pagerteam" %} Retired - {% else %} + {% else %} Ready to deliver - {% endif %} - - {% if n %} + {% endif %} + + {% if n %} {% if n.error %} Failed, {{ n.created|naturaltime }} @@ -116,37 +119,43 @@ {% else %} Delivered, {{ n.created|naturaltime }} {% endif %} - {% else %} - Never - {% endif %} - {% if ch.kind == "sms" or ch.kind == "whatsapp" %} + {% else %} + Never + {% endif %} + {% if ch.kind == "sms" or ch.kind == "whatsapp" %}

Used {{ profile.sms_sent_this_month }} of {{ profile.sms_limit }} sends this month.

- {% endif %} -
- {% if ch.kind == "webhook" %} - Edit - {% endif %} -
- {% csrf_token %} - -
-
+ {% if ch.kind == "webhook" %} + Edit + {% endif %} +
+ {% csrf_token %} + -
- -
- {% else %} + + +
+ +
+ {% else %}

The project "{{ project }}" does not have any integrations set up yet. @@ -156,227 +165,247 @@ when checks change state.

- {% endif %} + {% endif %} -

Add More

-
    -
  • - Slack icon +

    Add More

    +
      +
    • + Slack icon -

      Slack

      -

      A messaging app for teams.

      - {% if enable_slack_btn %} - Add Integration - {% else %} - Add Integration - {% endif %} -
    • -
    • - Email icon - -

      Email

      -

      Get an email message when a check goes up or down.

      - Add Integration -
    • - -
    • - Webhook icon - -

      Webhook

      -

      Receive a HTTP callback when a check goes down.

      - Add Integration -
    • - {% if enable_apprise %} -
    • - Apprise icon - -

      Apprise

      -

      Receive instant push notifications using Apprise; see all of the supported - services here.

      - Add Integration -
    • +

      Slack

      +

      A messaging app for teams.

      + {% if enable_slack_btn %} + Add Integration + {% else %} + Add Integration {% endif %} + +
    • + Email icon + +

      Email

      +

      Get an email message when a check goes up or down.

      + Add Integration +
    • + +
    • + Webhook icon + +

      Webhook

      +

      Receive a HTTP callback when a check goes down.

      + Add Integration +
    • + {% if enable_apprise %} +
    • + Apprise icon + +

      Apprise

      +

      Receive instant push notifications using Apprise; see all of the supported services here.

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

      Discord

      -

      Cross-platform voice and text chat app designed for gamers.

      - Add Integration -
    • - {% endif %} +

      Discord

      +

      Cross-platform voice and text chat app designed for gamers.

      + Add Integration + + {% endif %} - {% if enable_matrix %} -
    • - Matrix icon + {% if enable_matrix %} +
    • + Matrix icon -

      Matrix

      -

      Post notifications to a Matrix room.

      - Add Integration -
    • - {% endif %} +

      Matrix

      +

      Post notifications to a Matrix room.

      + Add Integration + + {% endif %} -
    • - Mattermost icon +
    • + Mattermost icon -

      Mattermost

      -

      High Trust Messaging for the Enterprise.

      - Add Integration -
    • +

      Mattermost

      +

      High Trust Messaging for the Enterprise.

      + Add Integration + -
    • - Microsoft Teams +
    • + Microsoft Teams -

      Microsoft Teams

      -

      Chat and collaboration platform for Microsoft Office 365 customers.

      - Add Integration -
    • +

      Microsoft Teams

      +

      Chat and collaboration platform for Microsoft Office 365 customers.

      + Add Integration + -
    • - OpsGenie icon +
    • + OpsGenie icon -

      OpsGenie

      -

      Alerting & Incident Management Solution for Dev & Ops.

      - Add Integration -
    • +

      OpsGenie

      +

      Alerting & Incident Management Solution for Dev & Ops.

      + Add Integration + -
    • - PagerDuty icon +
    • + PagerDuty icon -

      PagerDuty

      -

      On-call scheduling, alerting, and incident tracking.

      +

      PagerDuty

      +

      On-call scheduling, alerting, and incident tracking.

      - {% if enable_pdc %} + {% if enable_pdc %} Add Integration - {% else %} + {% else %} Add Integration - {% endif %} -
    • - -
    • - PagerTree icon - -

      PagerTree

      -

      Incident Management - On-Call Schedules, Alerts, & Notifications

      - Add Integration -
    • - -
    • - Prometheus icon - -

      Prometheus

      -

      Export check and tag status values to Prometheus.

      - 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 %} + + +
    • + PagerTree icon + +

      PagerTree

      +

      DevOps Incident Management - On-Call Schedules, Alerts, & Notifications

      + Add Integration +
    • + +
    • + Prometheus icon + +

      Prometheus

      +

      Export check and tag status values to Prometheus.

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

      Pushbullet

      +

      Pushbullet connects your devices, making them feel like one.

      + Add Integration +
    • + {% endif %} - {% if enable_shell %} -
    • - Shell icon - -

      Shell Command

      -

      Execute a local shell command when a check goes up or down.

      - Add Integration -
    • - {% endif %} - - {% if enable_sms %} -
    • - SMS icon - -

      SMS

      -

      Get a text message to your phone when a check goes down.

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

      Pushover

      +

      Receive instant push notifications on your phone or tablet.

      + Add Integration +
    • + {% endif %} -

      Telegram

      -

      A messaging app with a focus on speed and security.

      - Add Integration - - {% endif %} + {% if enable_shell %} +
    • + Shell icon - {% if enable_trello %} -
    • - Trello icon +

      Shell Command

      +

      Execute a local shell command when a check goes up or down.

      + Add Integration +
    • + {% endif %} -

      Trello

      -

      Create a Trello card when a check goes down.

      - Add Integration - - {% endif %} + {% if enable_sms %} +
    • + SMS icon -
    • - VictorOps icon +

      SMS

      +

      Get a text message to your phone when a check goes down.

      + Add Integration +
    • + {% endif %} + +
    • + Spike.sh icon -

      VictorOps

      -

      On-call scheduling, alerting, and incident tracking.

      - Add Integration -
    • +

      Spike.sh

      +

      No BS Incident management with unlimited alerts and on-call schedules

      - {% if enable_whatsapp %} -
    • - WhatsApp icon + Add Integration +
    • + + {% if enable_telegram %} +
    • + Telegram icon + +

      Telegram

      +

      A messaging app with a focus on speed and security.

      + Add Integration +
    • + {% endif %} -

      WhatsApp

      -

      Get a WhatsApp message when a check goes up or down.

      - Add Integration - - {% endif %} + {% if enable_trello %} +
    • + Trello icon -
    • - Zulip icon +

      Trello

      +

      Create a Trello card when a check goes down.

      + Add Integration +
    • + {% endif %} -

      Zulip

      -

      Open-source group chat.

      - Add Integration - +
    • + VictorOps icon -
    • - Spike.sh icon +

      VictorOps

      +

      On-call scheduling, alerting, and incident tracking.

      + Add Integration +
    • -

      Spike.sh

      -

      No BS Incident management with unlimited alerts and on-call schedules

      + {% if enable_whatsapp %} +
    • + WhatsApp icon - Add Integration -
    • +

      WhatsApp

      +

      Get a WhatsApp message when a check goes up or down.

      + Add Integration + + {% endif %} - +
    • + Zulip icon + +

      Zulip

      +

      Open-source group chat.

      + Add Integration +
    • + + -
    -
+ +