53 def get_topmenue(): |
53 def get_topmenue(): |
54 menue = [ |
54 menue = [ |
55 ('/ozoneloss', _(u'Ozoneloss'),( |
55 ('/ozoneloss', _(u'Ozoneloss'),( |
56 ('/ozoneloss', _(u'overview')), |
56 ('/ozoneloss', _(u'overview')), |
57 ('/ozoneloss/clams/2015', _(u'calculations')), |
57 ('/ozoneloss/clams/2015', _(u'calculations')), |
58 ('/ozoneloss/vpsc/2015', _(u'estimations')))), |
58 ('/ozoneloss/vpsc/2015', _(u'estimations')), |
|
59 ('/ozoneloss/uvi', _(u'uv increase')))), |
59 |
60 |
60 ('/eskp', _(u'ESKP'),(None, None)), |
61 ('/eskp', _(u'ESKP'),(None, None)), |
61 ('/iek-7', _(u'IEK-7'),(None, None)) |
62 ('/iek-7', _(u'IEK-7'),(None, None)) |
62 ] |
63 ] |
63 return menue |
64 return menue |
122 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
123 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
123 explanation = get_content(filename) |
124 explanation = get_content(filename) |
124 |
125 |
125 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/%s" % year, content=content, |
126 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/%s" % year, content=content, |
126 content_explanation=explanation, year=year) |
127 content_explanation=explanation, year=year) |
|
128 |
127 |
129 |
128 @app.route('/de') |
130 @app.route('/de') |
129 def de(): |
131 def de(): |
130 global LANGUAGE_SELECTED |
132 global LANGUAGE_SELECTED |
131 LANGUAGE_SELECTED = "de" |
133 LANGUAGE_SELECTED = "de" |
198 def ozoneloss_vspc(): |
200 def ozoneloss_vspc(): |
199 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
201 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
200 content = get_content(filename) |
202 content = get_content(filename) |
201 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc", content=content) |
203 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc", content=content) |
202 |
204 |
|
205 @app.route("/ozoneloss/uvi") |
|
206 def ozoneloss_uvi(): |
|
207 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_uvi.rst") |
|
208 content = get_content(filename) |
|
209 return render_template("/ozoneloss_uvi.html", act="ozoneloss/uvi", content=content, |
|
210 alt=_(u"UV increase at 52 degrees N for 50 DU ozone depletion")) |
|
211 |
203 @app.route("/iek-7") |
212 @app.route("/iek-7") |
204 def institute(): |
213 def institute(): |
205 filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst") |
214 filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst") |
206 content = get_content(filename) |
215 content = get_content(filename) |
207 vcard_file = os.path.join("vcards", "sas.vcf") |
216 vcard_file = os.path.join("vcards", "sas.vcf") |