From 7d305e216c9c6b2267900f50c440dd9d68210fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 4 Feb 2016 09:54:06 +0200 Subject: [PATCH] List Pushover and VictorOps on welcome page. --- hc/front/views.py | 3 +- static/css/welcome.css | 5 ++ templates/base.html | 2 +- templates/front/channels.html | 4 +- templates/front/welcome.html | 59 +++++++++++++++++++++-- templates/integrations/add_victorops.html | 2 +- 6 files changed, 65 insertions(+), 10 deletions(-) diff --git a/hc/front/views.py b/hc/front/views.py index edf92b39..e43dc164 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -79,7 +79,8 @@ def index(request): ctx = { "page": "welcome", "check": check, - "ping_url": check.url() + "ping_url": check.url(), + "enable_pushover": settings.PUSHOVER_API_TOKEN is not None } return render(request, "front/welcome.html", ctx) diff --git a/static/css/welcome.css b/static/css/welcome.css index e61adabf..9aca0590 100644 --- a/static/css/welcome.css +++ b/static/css/welcome.css @@ -82,3 +82,8 @@ .tour-section { margin-bottom: 50px; } + +.welcome-integrations img { + width: 22px; + height: 22px; +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index d96e1ea5..08d5b5ad 100644 --- a/templates/base.html +++ b/templates/base.html @@ -134,7 +134,7 @@