diff --git a/uffd/default_config.cfg b/uffd/default_config.cfg index e7e27480a04ba0b471fdd3b0bbee0c75e72ba58b..b51d9c9f5ba6d05eb8c7490a4e03b099157f1b88 100644 --- a/uffd/default_config.cfg +++ b/uffd/default_config.cfg @@ -29,6 +29,8 @@ ROLES_BASEROLES=['base'] SQLALCHEMY_TRACK_MODIFICATIONS=False +FOOTER_CONTENT='<div class="container"><span class="text-muted">Place sticky footer content here.</span></div>' + # do NOT set in production #TEMPLATES_AUTO_RELOAD=True diff --git a/uffd/static/style.css b/uffd/static/style.css index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8aecff42d658fadbe38c2c58b82e5fc70f9cd88e 100644 --- a/uffd/static/style.css +++ b/uffd/static/style.css @@ -0,0 +1,8 @@ +.footer { + position: absolute; + bottom: 0; + width: 100%; + height: 2em; + line-height: 2em; + background-color: #f5f5f5; +} diff --git a/uffd/templates/base.html b/uffd/templates/base.html index f2e3dd75121352d163c3bd961cbddfcc38b1bb30..815225ac7a82e0e99c57f261e0a71f63ee6b9c26 100644 --- a/uffd/templates/base.html +++ b/uffd/templates/base.html @@ -95,5 +95,11 @@ {% endblock body %} </main> + <footer class="footer"> + {% block footer %} + {{ config["FOOTER_CONTENT"]|safe }} + {% endblock footer %} + </footer> + </body> </html>