Compare commits
No commits in common. "69807d034ebb79eab96be44e4c15fdd6ff7245b8" and "26f39fec1ef6c81d3f86123aa5f6a7e456cfcf17" have entirely different histories.
69807d034e
...
26f39fec1e
3 changed files with 1 additions and 17 deletions
|
|
@ -65,8 +65,6 @@
|
|||
<div class="float-end">
|
||||
<p>
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "frontend/base.html" %}
|
||||
{% load i18n static %}
|
||||
{% block html_title %}
|
||||
{% translate "Dashboard" %} for {{ object.name }}
|
||||
{{ object.name }} {% translate "Dashboard" %}
|
||||
{% endblock html_title %}
|
||||
{% block page_title %}{% endblock %}
|
||||
{% block content %}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue