Modify: footer meta info
This commit is contained in:
parent
ff602097be
commit
045cc3641f
@ -2,7 +2,7 @@ import environ
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from . import __version__
|
from . import __version__, __status__
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
@ -11,7 +11,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
env = environ.Env(
|
env = environ.Env(
|
||||||
# set casting default value
|
# set casting default value
|
||||||
VERSION=(str, __version__),
|
VERSION=(str, __version__),
|
||||||
ENVIRONMENT=(str, 'development'),
|
ENVIRONMENT=(str, __status__),
|
||||||
DEBUG=(bool, False),
|
DEBUG=(bool, False),
|
||||||
SECRET_KEY=(str, 'j9QGbvM9Z4otb47'),
|
SECRET_KEY=(str, 'j9QGbvM9Z4otb47'),
|
||||||
SQLITE_URL=(str, f'sqlite:///{BASE_DIR / "data/db.sqlite3"}'),
|
SQLITE_URL=(str, f'sqlite:///{BASE_DIR / "data/db.sqlite3"}'),
|
||||||
|
@ -1,17 +1,4 @@
|
|||||||
<a
|
<a class="navbar-brand" href="{% url 'collector:index' %}">
|
||||||
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 %}
|
|
||||||
"
|
|
||||||
>
|
|
||||||
Logs Collector
|
Logs Collector
|
||||||
<i class="bi bi-file-earmark-zip-fill"></i>
|
<i class="bi bi-file-earmark-zip-fill"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@ -2,7 +2,13 @@
|
|||||||
<div class="container d-flex justify-content-between">
|
<div class="container d-flex justify-content-between">
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
<li class="nav-item">
|
<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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
|
Loading…
Reference in New Issue
Block a user