Add link to services status

This commit is contained in:
Gabriel Augendre 2021-07-31 09:48:08 +02:00
parent b0ed4c8327
commit 77cffbea34
3 changed files with 5 additions and 0 deletions

View file

@ -59,4 +59,5 @@ def blog_metadata(request):
context["blog_author"] = settings.BLOG["author"] context["blog_author"] = settings.BLOG["author"]
context["blog_pipelines_url"] = settings.BLOG["repo"]["pipelines_url"] context["blog_pipelines_url"] = settings.BLOG["repo"]["pipelines_url"]
context["blog_repo_homepage"] = settings.BLOG["repo"]["homepage"] context["blog_repo_homepage"] = settings.BLOG["repo"]["homepage"]
context["blog_status_url"] = settings.BLOG["status_url"]
return context return context

View file

@ -55,6 +55,9 @@
<a href="https://www.gnu.org/licenses/gpl-3.0.html">GNU GENERAL PUBLIC LICENSE version 3</a>.<br> <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 Currently deployed version: <a href="{{ git_version_url }}">{{ git_version }}</a>. You can check
for ongoing builds <a href="{{ blog_pipelines_url }}">here</a>. 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> </p>
</footer> </footer>

View file

@ -201,6 +201,7 @@ BLOG = {
"log": "https://git.augendre.info/gaugendre/blog/commits/branch/master", "log": "https://git.augendre.info/gaugendre/blog/commits/branch/master",
"pipelines_url": "https://drone.augendre.info/gaugendre/blog", "pipelines_url": "https://drone.augendre.info/gaugendre/blog",
}, },
"status_url": os.getenv("SERVICES_STATUS_URL"),
} }
SHORTPIXEL_API_KEY = os.getenv("SHORTPIXEL_API_KEY") SHORTPIXEL_API_KEY = os.getenv("SHORTPIXEL_API_KEY")