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")