equal
deleted
inserted
replaced
33 content = publish_parts(rst_data, writer_name='html', settings_overrides=overrides)['html_body'] |
33 content = publish_parts(rst_data, writer_name='html', settings_overrides=overrides)['html_body'] |
34 return content |
34 return content |
35 |
35 |
36 def get_topmenue(): |
36 def get_topmenue(): |
37 menue = [ |
37 menue = [ |
38 ('/', _(u'Home')), |
38 # ('/', _(u'Startseite')), |
39 ('/ozoneloss', _(u'Ozoneloss')), |
39 ('/ozoneloss', _(u'Ozoneloss')), |
40 ('/eskp', _(u'ESKP')), |
40 ('/eskp', _(u'ESKP')), |
41 ('/iek-7', _(u'IEK-7')), |
41 ('/iek-7', _(u'IEK-7')), |
42 ] |
42 ] |
43 return menue |
43 return menue |
148 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
148 filename = os.path.join("templates", get_locale(), "rst", "ozoneloss_vpsc.rst") |
149 content = get_content(filename) |
149 content = get_content(filename) |
150 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
150 filename = os.path.join("templates", get_locale(), "rst", "explanation_vpsc.rst") |
151 explanation = get_content(filename) |
151 explanation = get_content(filename) |
152 |
152 |
153 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, content_explanation=explanation, year=2011) |
153 return render_template("/ozoneloss_vpsc.html", act="ozoneloss/vpsc/2014", content=content, content_explanation=explanation, year=2010) |
154 |
154 |
155 @app.route('/de') |
155 @app.route('/de') |
156 def de(): |
156 def de(): |
157 global LANGUAGE_SELECTED |
157 global LANGUAGE_SELECTED |
158 LANGUAGE_SELECTED = "de" |
158 LANGUAGE_SELECTED = "de" |