diff --git a/.idea/TimeDispatcher.iml b/.idea/TimeDispatcher.iml index dfbc70c..e63e4b1 100644 --- a/.idea/TimeDispatcher.iml +++ b/.idea/TimeDispatcher.iml @@ -19,6 +19,10 @@ + + + + diff --git a/TimeDispatcher/settings.py b/TimeDispatcher/settings.py index 998d997..c5e0b7d 100644 --- a/TimeDispatcher/settings.py +++ b/TimeDispatcher/settings.py @@ -15,6 +15,8 @@ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent +APP_VERSION = "0.0.1" + # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/ @@ -64,6 +66,7 @@ TEMPLATES = [ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'context_processors.version', 'context_processors.navbar_links' ], }, diff --git a/context_processors.py b/context_processors.py index c0f796a..0fea96a 100644 --- a/context_processors.py +++ b/context_processors.py @@ -1,3 +1,11 @@ +from TimeDispatcher.settings import APP_VERSION + + +def version(request): + return { + "version": APP_VERSION + } + def navbar_links(request): return { "nav_links": [ diff --git a/dispatcher/static/base.css b/dispatcher/static/base.css index dab2c97..a2df91e 100644 --- a/dispatcher/static/base.css +++ b/dispatcher/static/base.css @@ -53,7 +53,16 @@ nav a:hover { footer { background-color: var(--dark2); - min-height: 3em; + display: flex; + justify-content: flex-end; + align-items: center; + padding: 1.2em; +} + +footer .sep { + margin: 0 0.5em; + border-left: solid var(--light1) 1px; + height: 1em; } main { @@ -83,4 +92,8 @@ button, select { .template { display: none !important; +} + +a { + color: #69c935 } \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..338a411 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Django~=5.1.5 \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 1451746..792b945 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,6 +19,10 @@ {% block main %}{% endblock %} - +