Browse Source

Add link to services status

master
Gabriel Augendre 2 months ago
parent
commit
77cffbea34
  1. 1
      articles/context_processors.py
  2. 3
      articles/templates/articles/base.html
  3. 1
      blog/settings.py

1
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

3
articles/templates/articles/base.html

@ -55,6 +55,9 @@
<a href="https://www.gnu.org/licenses/gpl-3.0.html">GNU GENERAL PUBLIC LICENSE version 3</a>.<br>
Currently deployed version: <a href="{{ git_version_url }}">{{ git_version }}</a>. You can check
for ongoing builds <a href="{{ blog_pipelines_url }}">here</a>.
{% if blog_status_url %}
Status of services can be found <a href="{{ blog_status_url }}">here</a>
{% endif %}
</p>
</footer>

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

Loading…
Cancel
Save