eskp.py
changeset 1577 bc114089a220
parent 1557 b9ea1aa08de5
child 1598 c03d9beb0451
equal deleted inserted replaced
1576:e643bce8906c 1577:bc114089a220
    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)),
    78         ('/eskp', _(u'ESKP'), (None, None)),
    79         ('/iek-7', _(u'IEK-7'), (None, None))
    79         ('/ice-4', _(u'ICE-4'), (None, None))
    80     ]
    80     ]
    81     return menue
    81     return menue
    82 
    82 
    83 
    83 
    84 app.jinja_env.globals.update(get_topmenue=get_topmenue)
    84 app.jinja_env.globals.update(get_topmenue=get_topmenue)
   370     return render_template("/ozoneloss_decadal.html", act="ozoneloss_decadal", content=content,
   370     return render_template("/ozoneloss_decadal.html", act="ozoneloss_decadal", content=content,
   371                            content_explanation=explanation)
   371                            content_explanation=explanation)
   372 
   372 
   373 
   373 
   374 
   374 
   375 @app.route("/iek-7")
   375 @app.route("/ice-4")
   376 def institute():
   376 def institute():
   377     filename = os.path.join("templates", get_locale(), "rst", "iek-7.rst")
   377     filename = os.path.join("templates", get_locale(), "rst", "ice-4.rst")
   378     content = get_content(filename)
   378     content = get_content(filename)
   379     vcard_file = os.path.join("vcards", "sas.vcf")
   379     vcard_file = os.path.join("vcards", "sas.vcf")
   380     author = u""
   380     author = u""
   381     try:
   381     try:
   382         card = get_vcard(vcard_file)
   382         card = get_vcard(vcard_file)
   383     except IOError:
   383     except IOError:
   384         card = None
   384         card = None
   385     if card is not None:
   385     if card is not None:
   386         qr_image = qr_image_data(card)
   386         qr_image = qr_image_data(card)
   387         author = render_template("/author_info.html", act="author", title=_(u"IEK-7"),
   387         author = render_template("/author_info.html", act="author", title=_(u"ICE-4"),
   388                                  card=card, image=qr_image, contact=_(u"Contact"), exit=_(u"Close"))
   388                                  card=card, image=qr_image, contact=_(u"Contact"), exit=_(u"Close"))
   389 
   389 
   390     return render_template("/iek-7.html", act="iek-7", content=content,
   390     return render_template("/ice-4.html", act="ice-4", content=content,
   391                            author=author, card=card, contact=u"IEK-7")
   391                            author=author, card=card, contact=u"ICE-4")
   392 
   392 
   393 
   393 
   394 @app.route("/imprint")
   394 @app.route("/imprint")
   395 def imprint():
   395 def imprint():
   396     filename = os.path.join("templates", get_locale(), "rst", "imprint.rst")
   396     filename = os.path.join("templates", get_locale(), "rst", "imprint.rst")
Impressum Datenschutzerklärung