{% if ch.kind == "email" %} Email to {{ ch.email.value }} {% if ch.email.notify_down and not ch.email.notify_up %} (down only) {% endif %} {% if ch.email.notify_up and not ch.email.notify_down %} (up only) {% endif %} {% elif ch.kind == "pd" %} PagerDuty account {{ ch.pd.account }} {% elif ch.kind == "po" %} Pushover ({{ ch.po_priority }} priority) {% elif ch.kind == "slack" %} Slack {% if ch.slack_team %} team {{ ch.slack_team }}, channel {{ ch.slack_channel }} {% endif %} {% elif ch.kind == "telegram" %} Telegram {% if ch.telegram.type == "group" %} group {{ ch.telegram.name }} {% elif ch.telegram.type == "private" %} user {{ ch.telegram.name }} {% elif ch.telegram.type == "channel" %} channel {{ ch.telegram.name }} {% endif %} {% elif ch.kind == "sms" %} SMS to {{ ch.phone.value }} {% if ch.phone.notify_down and not ch.phone.notify_up %} (down only) {% endif %} {% if ch.phone.notify_up and not ch.phone.notify_down %} (up only) {% endif %} {% elif ch.kind == "call" %} Phone call to {{ ch.phone.value }} {% elif ch.kind == "trello" %} Trello board {{ ch.trello.board_name }}, list {{ ch.trello.list_name }} {% elif ch.kind == "matrix" %} Matrix {{ ch.value }} {% elif ch.kind == "whatsapp" %} WhatsApp to {{ ch.phone.value }} {% if ch.phone.notify_down and not ch.phone.notify_up %} (down only) {% endif %} {% if ch.phone.notify_up and not ch.phone.notify_down %} (up only) {% endif %} {% elif ch.kind == "zulip" %} Zulip {% if ch.zulip.mtype == "stream" %} stream {{ ch.zulip.to}} {% elif ch.zulip.mtype == "private" %} user {{ ch.zulip.to}} {% endif %} {% elif ch.kind == "signal" %} Signal to {{ ch.phone.value }} {% if ch.phone.notify_down and not ch.phone.notify_up %} (down only) {% endif %} {% if ch.phone.notify_up and not ch.phone.notify_down %} (up only) {% endif %} {% elif ch.kind == "ntfy" %} ntfy topic {{ ch.ntfy.topic }}, {{ ch.ntfy.priority_display }} priority {% elif ch.kind == "group" %} Group, {% with ch.group_channels|length as num_members %} {{ num_members }} member{{ num_members|pluralize}} {% endwith %} {% else %} {{ ch.get_kind_display }} {% endif %}