eskp.py
changeset 1598 c03d9beb0451
parent 1577 bc114089a220
equal deleted inserted replaced
1597:02ab6e6a2bb6 1598:c03d9beb0451
    73           ('/ozoneloss/clams/2025', _(u'calculations')),
    73           ('/ozoneloss/clams/2025', _(u'calculations')),
    74           ('/ozoneloss/vpsc/2025', _(u'estimations')),
    74           ('/ozoneloss/vpsc/2025', _(u'estimations')),
    75           ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')),
    75           ('/ozoneloss/uvmap/' + newest_date, _(u'uv index map')),
    76           ('/ozoneloss/uvi', _(u'uv increase')),
    76           ('/ozoneloss/uvi', _(u'uv increase')),
    77           ('/ozoneloss/decadal', _(u'decadal')))),
    77           ('/ozoneloss/decadal', _(u'decadal')))),
    78         ('/eskp', _(u'ESKP'), (None, None)),
       
    79         ('/ice-4', _(u'ICE-4'), (None, None))
    78         ('/ice-4', _(u'ICE-4'), (None, None))
    80     ]
    79     ]
    81     return menue
    80     return menue
    82 
    81 
    83 
    82 
   185 
   184 
   186 @app.route("/")
   185 @app.route("/")
   187 @app.route("/index")
   186 @app.route("/index")
   188 def index():
   187 def index():
   189     return render_template("/index.html",
   188     return render_template("/index.html",
   190                            eskp_info=_(u'About ESKP'),
       
   191                            )
   189                            )
   192 
   190 
   193 
   191 
   194 @app.route('/ozoneloss/clams/<year>')
   192 @app.route('/ozoneloss/clams/<year>')
   195 def ozoneloss_clams_year(year):
   193 def ozoneloss_clams_year(year):
   223 @app.route('/de')
   221 @app.route('/de')
   224 def de():
   222 def de():
   225     global LANGUAGE_SELECTED
   223     global LANGUAGE_SELECTED
   226     LANGUAGE_SELECTED = "de"
   224     LANGUAGE_SELECTED = "de"
   227     return render_template("/index.html",
   225     return render_template("/index.html",
   228                            eskp_info=_(u'About ESKP'),
       
   229                            )
   226                            )
   230 
   227 
   231 
   228 
   232 @app.route('/en')
   229 @app.route('/en')
   233 def en():
   230 def en():
   234     global LANGUAGE_SELECTED
   231     global LANGUAGE_SELECTED
   235     LANGUAGE_SELECTED = "en"
   232     LANGUAGE_SELECTED = "en"
   236     return render_template("/index.html",
   233     return render_template("/index.html",
   237                            eskp_info=_(u'About ESKP'),
       
   238                            )
   234                            )
   239 
   235 
   240 
       
   241 @app.route("/eskp")
       
   242 def eskp():
       
   243     filename = os.path.join("templates", get_locale(), "rst", "eskp.rst")
       
   244     content = get_content(filename)
       
   245     filename = os.path.join("templates", get_locale(), "rst", "eskp_title.rst")
       
   246     headline = get_content(filename)
       
   247     return render_template("/eskp.html", act="eskp", content=content, headline=headline)
       
   248 
   236 
   249 
   237 
   250 def qr_image_data(card):
   238 def qr_image_data(card):
   251     buf = StringIO.StringIO()
   239     buf = StringIO.StringIO()
   252     qr = qrcode.QRCode(
   240     qr = qrcode.QRCode(
Impressum Datenschutzerklärung