344 filename = os.path.join("templates", get_locale(), "rst", "imprint.rst") |
344 filename = os.path.join("templates", get_locale(), "rst", "imprint.rst") |
345 content = get_content(filename) |
345 content = get_content(filename) |
346 return render_template("/content.html", act="imprint", content=content) |
346 return render_template("/content.html", act="imprint", content=content) |
347 |
347 |
348 |
348 |
|
349 @app.route("/datenschutz") |
|
350 def imprint(): |
|
351 filename = os.path.join("templates", get_locale(), "rst", "datenschutz.rst") |
|
352 content = get_content(filename) |
|
353 return render_template("/content.html", act="datenschutz", content=content) |
|
354 |
|
355 |
349 @app.errorhandler(404) |
356 @app.errorhandler(404) |
350 def page_not_found(e): |
357 def page_not_found(e): |
351 msg = _(u"Url: %(url)s not found", url=request.url) |
358 msg = _(u"Url: %(url)s not found", url=request.url) |
352 info = _(u"This information is not available!") |
359 info = _(u"This information is not available!") |
353 return render_template("404.html", msg=msg, info=info) |
360 return render_template("404.html", msg=msg, info=info) |