From d4150080e3820e1f92137f5fc5c0985d366f29d7 Mon Sep 17 00:00:00 2001 From: Daniel GarcĂ­a Moreno Date: Tue, 1 Jun 2021 11:44:09 +0200 Subject: Use AdminLTE in base.html This patch adds the css and js sources from the AdminLTE template to the base template so it can be used in all templates. There's also some flexbox bootstrap classes [1] to place the footer at the bootom always, even when there's no content to fill the page. [1] https://getbootstrap.com/docs/4.6/utilities/flex/ --- ogcp/static/css/soleta.css | 5 ++++ ogcp/templates/base.html | 75 +++++++++++++++++++++++++++------------------- 2 files changed, 49 insertions(+), 31 deletions(-) diff --git a/ogcp/static/css/soleta.css b/ogcp/static/css/soleta.css index d9a775b..d748f5b 100644 --- a/ogcp/static/css/soleta.css +++ b/ogcp/static/css/soleta.css @@ -1,3 +1,8 @@ .state--opg { background-color: rgb(252, 222, 66); } + +html, body { + width: 100%; + height: 100% !important; +} diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index e70e3fd..5fda82a 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -2,42 +2,55 @@ {% block head %} - - - - {% block title %}{% endblock %} - OpenGnsys + + + + + + + + {% endblock %} - {% include 'nav.html' %} - {% block nav %}{% endblock %} - {% block flash %} - {% for category, message in get_flashed_messages(with_categories=True) %} - {% if category == 'info' %} -