eskp.py
changeset 244 0310fe6b2beb
parent 241 9bfd98868419
child 245 b209c747888e
equal deleted inserted replaced
243:267e096f5434 244:0310fe6b2beb
    66 
    66 
    67 @app.route('/ozoneloss/2014')
    67 @app.route('/ozoneloss/2014')
    68 def y2014():
    68 def y2014():
    69     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    69     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    70     content = get_content(filename)
    70     content = get_content(filename)
    71     return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2014)
    71     return render_template("/ozoneloss.html", act="ozoneloss/2014", content=content, year=2014)
    72 
    72 
    73 @app.route('/ozoneloss/2013')
    73 @app.route('/ozoneloss/2013')
    74 def y2013():
    74 def y2013():
    75     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    75     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    76     content = get_content(filename)
    76     content = get_content(filename)
    77     return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2013)
    77     return render_template("/ozoneloss.html", act="ozoneloss/2013", content=content, year=2013)
    78 
    78 
    79 @app.route('/ozoneloss/2012')
    79 @app.route('/ozoneloss/2012')
    80 def y2012():
    80 def y2012():
    81     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    81     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    82     content = get_content(filename)
    82     content = get_content(filename)
    83     return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2012)
    83     return render_template("/ozoneloss.html", act="ozoneloss/2012", content=content, year=2012)
    84 
    84 
    85 @app.route('/ozoneloss/2011')
    85 @app.route('/ozoneloss/2011')
    86 def y2011():
    86 def y2011():
    87     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    87     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    88     content = get_content(filename)
    88     content = get_content(filename)
    89     return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2011)
    89     return render_template("/ozoneloss.html", act="ozoneloss/2011", content=content, year=2011)
    90 
    90 
    91 @app.route('/ozoneloss/2010')
    91 @app.route('/ozoneloss/2010')
    92 def y2010():
    92 def y2010():
    93     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    93     filename = os.path.join("templates", get_locale(), "rst", "ozoneloss.rst")
    94     content = get_content(filename)
    94     content = get_content(filename)
    95     return render_template("/ozoneloss.html", act="ozoneloss", content=content, year=2010)
    95     return render_template("/ozoneloss.html", act="ozoneloss/2010", content=content, year=2010)
    96 
    96 
    97 @app.route('/de')
    97 @app.route('/de')
    98 def de():
    98 def de():
    99     global LANGUAGE_SELECTED
    99     global LANGUAGE_SELECTED
   100     LANGUAGE_SELECTED = "de"
   100     LANGUAGE_SELECTED = "de"
Impressum Datenschutzerklärung