ozoneless page improved
authorReimar Bauer <rb.proj AT googlemail DOT com>
Tue, 06 May 2014 13:02:17 +0200
changeset 2440310fe6b2beb
parent 243 267e096f5434
child 245 b209c747888e
ozoneless page improved
eskp.py
templates/ozoneloss.html
     1.1 --- a/eskp.py	Tue May 06 12:34:16 2014 +0200
     1.2 +++ b/eskp.py	Tue May 06 13:02:17 2014 +0200
     1.3 @@ -68,31 +68,31 @@
     1.4  def y2014():
     1.5      filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
     1.6      content = get_content(filename)
     1.7 -    return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2014)
     1.8 +    return render_template("/ozoneloss.html", act="ozoneloss/2014", content=content, year=2014)
     1.9  
    1.10  @app.route('/ozoneloss/2013')
    1.11  def y2013():
    1.12      filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    1.13      content = get_content(filename)
    1.14 -    return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2013)
    1.15 +    return render_template("/ozoneloss.html", act="ozoneloss/2013", content=content, year=2013)
    1.16  
    1.17  @app.route('/ozoneloss/2012')
    1.18  def y2012():
    1.19      filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    1.20      content = get_content(filename)
    1.21 -    return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2012)
    1.22 +    return render_template("/ozoneloss.html", act="ozoneloss/2012", content=content, year=2012)
    1.23  
    1.24  @app.route('/ozoneloss/2011')
    1.25  def y2011():
    1.26      filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    1.27      content = get_content(filename)
    1.28 -    return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2011)
    1.29 +    return render_template("/ozoneloss.html", act="ozoneloss/2011", content=content, year=2011)
    1.30  
    1.31  @app.route('/ozoneloss/2010')
    1.32  def y2010():
    1.33      filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    1.34      content = get_content(filename)
    1.35 -    return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2010)
    1.36 +    return render_template("/ozoneloss.html", act="ozoneloss/2010", content=content, year=2010)
    1.37  
    1.38  @app.route('/de')
    1.39  def de():
     2.1 --- a/templates/ozoneloss.html	Tue May 06 12:34:16 2014 +0200
     2.2 +++ b/templates/ozoneloss.html	Tue May 06 13:02:17 2014 +0200
     2.3 @@ -5,7 +5,6 @@
     2.4   	<div class="row">
     2.5       {{ content|safe }}
     2.6   </div>
     2.7 -</div>
     2.8  
     2.9  
    2.10  
    2.11 @@ -19,4 +18,6 @@
    2.12  
    2.13      <img src="/static/images/ozoneloss/eskp_{{ year }}.svg" alt="{{ year }}">
    2.14      </div>
    2.15 -{% endblock %}
    2.16 +
    2.17 +</div>
    2.18 +{% endblock %}
    2.19 \ No newline at end of file
Impressum Datenschutzerklärung