diff --git a/Dockerfile b/Dockerfile index 1ff9966..8a14233 100755 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,6 @@ COPY --chmod=700 ./scripts /scripts # finally copy app (likely will invalidate cache) COPY . . -RUN (date +'%Y-%m-%d %R') > build_date.txt +RUN (date -u +'%Y-%m-%d %H:%M:%S') > build_date.txt CMD ["on-deploy.sh"] diff --git a/app/base/context.py b/app/base/context.py new file mode 100755 index 0000000..b170b47 --- /dev/null +++ b/app/base/context.py @@ -0,0 +1,7 @@ +from django.conf import settings + + +def custom_context(request): + return { + 'BUILD_DATE': settings.BUILD_DATE, + } diff --git a/app/base/static/css/style.css b/app/base/static/css/style.css index 6331d5d..7c60c6a 100755 --- a/app/base/static/css/style.css +++ b/app/base/static/css/style.css @@ -282,8 +282,8 @@ table.clickable tbody>tr:hover { } #sidebar-wrapper { - font-family: 'Dosis', sans-serif; - font-size: 1.2rem; + display: flex; + flex-direction: column; -webkit-transition: margin .25s ease-out; -moz-transition: margin .25s ease-out; -o-transition: margin .25s ease-out; @@ -295,6 +295,8 @@ table.clickable tbody>tr:hover { #sidebar-wrapper .list-group { width: max-content; + font-family: 'Dosis', sans-serif; + font-size: 1.2rem; } .icon-list i { diff --git a/app/base/templates/base.html b/app/base/templates/base.html index 3ad6fcc..1b9d60a 100755 --- a/app/base/templates/base.html +++ b/app/base/templates/base.html @@ -51,6 +51,12 @@ Transaktionen Attribute + {% if BUILD_DATE %} + +
+ v{{ BUILD_DATE|date:'Y-m-d H:i' }} +
+ {% endif %}