Compare commits

..

No commits in common. "69807d034ebb79eab96be44e4c15fdd6ff7245b8" and "26f39fec1ef6c81d3f86123aa5f6a7e456cfcf17" have entirely different histories.

3 changed files with 1 additions and 17 deletions

View file

@ -65,8 +65,6 @@
<div class="float-end"> <div class="float-end">
<p> <p>
Crafted with <span class="text-danger"><i class="bi bi-heart-fill icon-mid"></i></span> in Zurich Crafted with <span class="text-danger"><i class="bi bi-heart-fill icon-mid"></i></span> in Zurich
{% load version_tags %}
- {% get_version_or_env %}
</p> </p>
</div> </div>
</div> </div>

View file

@ -1,7 +1,7 @@
{% extends "frontend/base.html" %} {% extends "frontend/base.html" %}
{% load i18n static %} {% load i18n static %}
{% block html_title %} {% block html_title %}
{% translate "Dashboard" %} for {{ object.name }} {{ object.name }} {% translate "Dashboard" %}
{% endblock html_title %} {% endblock html_title %}
{% block page_title %}{% endblock %} {% block page_title %}{% endblock %}
{% block content %} {% block content %}

View file

@ -1,14 +0,0 @@
import os
from django import template
from servala.__about__ import __version__
register = template.Library()
@register.simple_tag
def get_version_or_env():
"""Return version number in production, environment name otherwise."""
env = os.environ.get('SERVALA_ENVIRONMENT', 'development')
if env == 'production':
return __version__
return env