change template context key: version_string -> inventory_version_string

So it's more unique ;)
pull/16/head
JensDiemer 2020-11-02 09:11:46 +01:00
rodzic 83349bc77b
commit 77ac2ae8ff
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -2,4 +2,4 @@ from inventory import __version__
def inventory_version_string(request):
return {"version_string": f"v{__version__}"}
return {'inventory_version_string': f'v{__version__}'}

Wyświetl plik

@ -7,11 +7,11 @@
<link rel="stylesheet" type="text/css" href="{% static 'inventory.css' %}">
{% endblock %}
{% block title %}{{ title }} | PyInventory {{ version_string }}{% endblock %}
{% block title %}{{ title }} | PyInventory {{ inventory_version_string }}{% endblock %}
{% block branding %}
<h1 id="site-name">
<a href="{% url 'admin:index' %}">PyInventory {{ version_string }}</a>
<a href="{% url 'admin:index' %}">PyInventory {{ inventory_version_string }}</a>
</h1>
{% endblock %}