From 73e5c651af5e509ede256de4a4fb2da1e0698eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 21 Mar 2019 15:49:16 +0200 Subject: [PATCH] Add Matrix to the landing page. --- hc/front/views.py | 1 + templates/front/welcome.html | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/hc/front/views.py b/hc/front/views.py index 9542fe7a..7fe3edfe 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -221,6 +221,7 @@ def index(request): "enable_sms": settings.TWILIO_AUTH is not None, "enable_pd": settings.PD_VENDOR_KEY is not None, "enable_trello": settings.TRELLO_APP_KEY is not None, + "enable_matrix": settings.MATRIX_ACCESS_TOKEN is not None, "registration_open": settings.REGISTRATION_OPEN } diff --git a/templates/front/welcome.html b/templates/front/welcome.html index f33c2a11..f37fd4d4 100644 --- a/templates/front/welcome.html +++ b/templates/front/welcome.html @@ -414,6 +414,15 @@ {% endif %} + + {% if enable_matrix %} +
+
+ Matrix icon +

Matrix
Chat

+
+
+ {% endif %}