add fixed-footer config template option

This commit is contained in:
Yannik Schmidt
2020-09-06 03:21:52 +02:00
parent 38845d1c08
commit ac9665defb
2 changed files with 3 additions and 2 deletions

View File

@@ -187,7 +187,8 @@ def thanks():
thanksTemplate = None thanksTemplate = None
with open(thanksTemplatePath) as f: with open(thanksTemplatePath) as f:
thanksTemplate = flask.Markup(flask.render_template_string(f.read(), conf=app.config)) thanksTemplate = flask.Markup(flask.render_template_string(f.read(), conf=app.config,
footerFixBottom=True))
return flask.render_template("stub.html", content=thanksTemplate) return flask.render_template("stub.html", content=thanksTemplate)

View File

@@ -1,3 +1,3 @@
<div class="footer-copyright text-center py-3 bg-dark" style="position: relative; bottom: 0;"> <div class="footer-copyright {% if footerFixBottom %} fixed-bottom {% endif %}text-center py-3 bg-dark" style="position: relative; bottom: 0;">
<a style="color: rgba(255,255,255,.5);" href="/impressum">Impressum/Kontakt</a> <a style="color: rgba(255,255,255,.5);" href="/impressum">Impressum/Kontakt</a>
</div> </div>