# HG changeset patch # User Reimar Bauer # Date 1399374137 -7200 # Node ID 0310fe6b2beb09290248970ca93c442954d61c3b # Parent 267e096f5434da97f0fe1944b5823e1e46cae787 ozoneless page improved diff -r 267e096f5434 -r 0310fe6b2beb eskp.py --- a/eskp.py Tue May 06 12:34:16 2014 +0200 +++ b/eskp.py Tue May 06 13:02:17 2014 +0200 @@ -68,31 +68,31 @@ def y2014(): filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst") content = get_content(filename) - return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2014) + return render_template("/ozoneloss.html", act="ozoneloss/2014", content=content, year=2014) @app.route('/ozoneloss/2013') def y2013(): filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst") content = get_content(filename) - return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2013) + return render_template("/ozoneloss.html", act="ozoneloss/2013", content=content, year=2013) @app.route('/ozoneloss/2012') def y2012(): filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst") content = get_content(filename) - return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2012) + return render_template("/ozoneloss.html", act="ozoneloss/2012", content=content, year=2012) @app.route('/ozoneloss/2011') def y2011(): filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst") content = get_content(filename) - return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2011) + return render_template("/ozoneloss.html", act="ozoneloss/2011", content=content, year=2011) @app.route('/ozoneloss/2010') def y2010(): filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst") content = get_content(filename) - return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2010) + return render_template("/ozoneloss.html", act="ozoneloss/2010", content=content, year=2010) @app.route('/de') def de(): diff -r 267e096f5434 -r 0310fe6b2beb templates/ozoneloss.html --- a/templates/ozoneloss.html Tue May 06 12:34:16 2014 +0200 +++ b/templates/ozoneloss.html Tue May 06 13:02:17 2014 +0200 @@ -5,7 +5,6 @@
{{ content|safe }}
- @@ -19,4 +18,6 @@ {{ year }} -{% endblock %} + + +{% endblock %} \ No newline at end of file