diff --git a/idhub/mixins.py b/idhub/mixins.py index b43f6e8..a32e7f7 100644 --- a/idhub/mixins.py +++ b/idhub/mixins.py @@ -75,7 +75,8 @@ class UserView(LoginRequiredMixin): 'path': resolve(self.request.path).url_name, 'user': self.request.user, 'wallet': self.wallet, - 'admin_validated': True if self.admin_validated else False + 'admin_validated': True if self.admin_validated else False, + 'commit_id': settings.COMMIT, }) return context diff --git a/idhub/templates/auth/login_base.html b/idhub/templates/auth/login_base.html index c7c5db1..3e08f19 100644 --- a/idhub/templates/auth/login_base.html +++ b/idhub/templates/auth/login_base.html @@ -82,6 +82,16 @@ +
+
+
+
+
+
+
+
+
+
+ + + diff --git a/idhub/templates/idhub/base.html b/idhub/templates/idhub/base.html index 46dee02..51dd639 100644 --- a/idhub/templates/idhub/base.html +++ b/idhub/templates/idhub/base.html @@ -33,6 +33,22 @@ font-size: 3.5rem; } } + html, body { + height: 100%; + } + + body { + display: flex; + flex-direction: column; + } + + .main-content { + flex-grow: 1; + } + + footer { + width: 100%; + } @@ -150,6 +166,13 @@ + + + {% block script %} diff --git a/idhub/templates/idhub/base_admin.html b/idhub/templates/idhub/base_admin.html index 271d6d5..db8354e 100644 --- a/idhub/templates/idhub/base_admin.html +++ b/idhub/templates/idhub/base_admin.html @@ -33,6 +33,22 @@ font-size: 3.5rem; } } + html, body { + height: 100%; + } + + body { + display: flex; + flex-direction: column; + } + + .main-content { + flex-grow: 1; + } + + footer { + width: 100%; + } @@ -180,6 +196,13 @@ + + + {% block script %} diff --git a/idhub/views.py b/idhub/views.py index d3da1b4..6a848e3 100644 --- a/idhub/views.py +++ b/idhub/views.py @@ -27,6 +27,7 @@ class LoginView(auth_views.LoginView): extra_context = { 'title': _('Login'), 'success_url': reverse_lazy('idhub:user_dashboard'), + 'commit_id': settings.COMMIT, } def get(self, request, *args, **kwargs): diff --git a/trustchain_idhub/settings.py b/trustchain_idhub/settings.py index c3a9438..53e0f86 100644 --- a/trustchain_idhub/settings.py +++ b/trustchain_idhub/settings.py @@ -235,4 +235,5 @@ OIDC_ORGS = config('OIDC_ORGS', '') ENABLE_EMAIL = config('ENABLE_EMAIL', default=True, cast=bool) CREATE_TEST_USERS = config('CREATE_TEST_USERS', default=False, cast=bool) ENABLE_2FACTOR_AUTH = config('ENABLE_2FACTOR_AUTH', default=True, cast=bool) +COMMIT = config('COMMIT', default='')