diff -r cc5e62368704 -r 08fcdd86155a eskp.py --- a/eskp.py Mon Dec 08 08:25:47 2014 +0100 +++ b/eskp.py Mon Dec 08 16:02:49 2014 +0100 @@ -55,7 +55,8 @@ ('/ozoneloss', _(u'Ozoneloss'),( ('/ozoneloss', _(u'overview')), ('/ozoneloss/clams/2015', _(u'calculations')), - ('/ozoneloss/vpsc/2015', _(u'estimations')))), + ('/ozoneloss/vpsc/2015', _(u'estimations')), + ('/ozoneloss/uvi', _(u'uv increase')))), ('/eskp', _(u'ESKP'),(None, None)), ('/iek-7', _(u'IEK-7'),(None, None)) @@ -125,6 +126,7 @@ return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/%s" % year, content=content, content_explanation=explanation, year=year) + @app.route('/de') def de(): global LANGUAGE_SELECTED @@ -200,6 +202,13 @@ content = get_content(filename) return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc", content=content) +@app.route("/ozoneloss/uvi") +def ozoneloss_uvi(): + filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_uvi.rst") + content = get_content(filename) + return render_template("/ozoneloss_uvi.html", act="ozoneloss/uvi", content=content, + alt=_(u"UV increase at 52 degrees N for 50 DU ozone depletion")) + @app.route("/iek-7") def institute(): filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst")