Skip to content
Permalink
Browse files

Show dynamic year in footer.

  • Loading branch information...
ibot3 committed Aug 7, 2019
1 parent b3ff448 commit d31348f6024335e5136ac9f59b476aa2271700ed
Showing with 3 additions and 1 deletion.
  1. +2 −0 sipa/initialization.py
  2. +1 −1 sipa/templates/base.html
@@ -3,6 +3,7 @@
import logging.config
import os
import os.path
from datetime import datetime

from flask_babel import Babel, get_locale
from raven import setup_logging
@@ -83,6 +84,7 @@ def init_app(app, **kwargs):
form_input_width_class="col-sm-{}".format(form_input_width),
form_input_offset_class="col-sm-offset-{}".format(form_label_width),
url_self=url_self,
now=datetime.utcnow()
)
logger.debug("Jinja globals have been set",
extra={'data': {'jinja_globals': app.jinja_env.globals}})
@@ -359,7 +359,7 @@ <h2>{{ _("Kontakt") }} </h2>
<div class="row">
<div class="col-lg-12 text-muted footer-below">
<p>
AG DSN, 2018.
AG DSN, {{ now.year }}.
<a href="{{ url_for('generic.version') }}">
{{ _("Informationen zur Version") }}
</a>

0 comments on commit d31348f

Please sign in to comment.
You can’t perform that action at this time.