1.1 --- a/eskp.py Mon Jan 20 20:05:31 2020 +0100
1.2 +++ b/eskp.py Tue Jan 21 12:49:47 2020 +0100
1.3 @@ -64,8 +64,9 @@
1.4 (('/ozoneloss', _(u'overview')),
1.5 ('/ozoneloss/clams/2020', _(u'calculations')),
1.6 ('/ozoneloss/vpsc/2020', _(u'estimations')),
1.7 + ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')),
1.8 ('/ozoneloss/uvi', _(u'uv increase')),
1.9 - ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')))),
1.10 + ('/ozoneloss/decadal', _(u'decadal')))),
1.11 ('/eskp', _(u'ESKP'), (None, None)),
1.12 ('/iek-7', _(u'IEK-7'), (None, None))
1.13 ]
1.14 @@ -191,7 +192,7 @@
1.15
1.16
1.17 @app.route('/ozoneloss/vpsc/<year>')
1.18 -def ozoneloss_vspc_year(year):
1.19 +def ozoneloss_vpsc_year(year):
1.20 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst")
1.21 content = get_content(filename)
1.22 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst")
1.23 @@ -282,7 +283,7 @@
1.24
1.25
1.26 @app.route("/ozoneloss/vpsc")
1.27 -def ozoneloss_vspc():
1.28 +def ozoneloss_vpsc():
1.29 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst")
1.30 content = get_content(filename)
1.31 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc", content=content)
1.32 @@ -324,6 +325,17 @@
1.33 return render_template('graph.html', act="ozoneloss_uvi_graph", content=content, figname=figname,
1.34 o3offsetstr=o3offsetstr, latstr=latstr)
1.35
1.36 +@app.route("/ozoneloss/decadal")
1.37 +def ozoneloss_decadal():
1.38 + filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_decadal.rst")
1.39 + content = get_content(filename)
1.40 + filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_decadal_bottom.rst")
1.41 + explanation = get_content(filename)
1.42 +
1.43 + return render_template("/ozoneloss_decadal.html", act="ozoneloss_decadal", content=content,
1.44 + content_explanation=explanation)
1.45 +
1.46 +
1.47
1.48 @app.route("/iek-7")
1.49 def institute():