Modify: footer meta info
This commit is contained in:
parent
ff602097be
commit
045cc3641f
@ -2,7 +2,7 @@ import environ
|
||||
from pathlib import Path
|
||||
from datetime import timedelta
|
||||
|
||||
from . import __version__
|
||||
from . import __version__, __status__
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
@ -11,7 +11,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
env = environ.Env(
|
||||
# set casting default value
|
||||
VERSION=(str, __version__),
|
||||
ENVIRONMENT=(str, 'development'),
|
||||
ENVIRONMENT=(str, __status__),
|
||||
DEBUG=(bool, False),
|
||||
SECRET_KEY=(str, 'j9QGbvM9Z4otb47'),
|
||||
SQLITE_URL=(str, f'sqlite:///{BASE_DIR / "data/db.sqlite3"}'),
|
||||
|
@ -1,17 +1,4 @@
|
||||
<a
|
||||
class="navbar-brand"
|
||||
href="{% url 'collector:index' %}"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-html="true"
|
||||
data-bs-placement="bottom"
|
||||
data-bs-title="
|
||||
Version: {{ version }}
|
||||
<br>
|
||||
{% if environment != production %}
|
||||
Staging: {{ environment|capfirst }}
|
||||
{% endif %}
|
||||
"
|
||||
>
|
||||
<a class="navbar-brand" href="{% url 'collector:index' %}">
|
||||
Logs Collector
|
||||
<i class="bi bi-file-earmark-zip-fill"></i>
|
||||
</a>
|
||||
|
@ -2,7 +2,13 @@
|
||||
<div class="container d-flex justify-content-between">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<span class="text-muted">© Created by {{ author }}</span>
|
||||
<span class="text-muted">
|
||||
v{{ version }}
|
||||
{% if environment != 'Production' %}
|
||||
Staging: {{ environment }}
|
||||
{% endif %}
|
||||
| © {{ author }}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
|
Loading…
Reference in New Issue
Block a user