From 77cffbea347b78518fc1ce64b2d9d61332037ac8 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 31 Jul 2021 09:48:08 +0200 Subject: [PATCH] Add link to services status --- articles/context_processors.py | 1 + articles/templates/articles/base.html | 3 +++ blog/settings.py | 1 + 3 files changed, 5 insertions(+) diff --git a/articles/context_processors.py b/articles/context_processors.py index 60d4725..5f0c3cf 100644 --- a/articles/context_processors.py +++ b/articles/context_processors.py @@ -59,4 +59,5 @@ def blog_metadata(request): context["blog_author"] = settings.BLOG["author"] context["blog_pipelines_url"] = settings.BLOG["repo"]["pipelines_url"] context["blog_repo_homepage"] = settings.BLOG["repo"]["homepage"] + context["blog_status_url"] = settings.BLOG["status_url"] return context diff --git a/articles/templates/articles/base.html b/articles/templates/articles/base.html index 84573bc..f0aa68e 100644 --- a/articles/templates/articles/base.html +++ b/articles/templates/articles/base.html @@ -55,6 +55,9 @@ GNU GENERAL PUBLIC LICENSE version 3.
Currently deployed version: {{ git_version }}. You can check for ongoing builds here. + {% if blog_status_url %} + Status of services can be found here + {% endif %}

diff --git a/blog/settings.py b/blog/settings.py index 5e2d8ef..1442cdd 100644 --- a/blog/settings.py +++ b/blog/settings.py @@ -201,6 +201,7 @@ BLOG = { "log": "https://git.augendre.info/gaugendre/blog/commits/branch/master", "pipelines_url": "https://drone.augendre.info/gaugendre/blog", }, + "status_url": os.getenv("SERVICES_STATUS_URL"), } SHORTPIXEL_API_KEY = os.getenv("SHORTPIXEL_API_KEY")