pymove3d.py
changeset 180 981d9968f011
parent 177 6010a584dd21
child 186 ddcf9027531e
equal deleted inserted replaced
179:4ea9139ca9fb 180:981d9968f011
   130     return render_template("/content.html",
   130     return render_template("/content.html",
   131                            act="dates", content=content)
   131                            act="dates", content=content)
   132 
   132 
   133 @app.route("/competition/2013")
   133 @app.route("/competition/2013")
   134 def competition_2013():
   134 def competition_2013():
   135     filename = os.path.join("templates", get_locale(), "archive", "competitions", "2013", "rst", "2013.rst")
   135     filename = os.path.join("templates", get_locale(), "archive", "2013", "competitions", "rst", "2013.rst")
   136     content = get_content(filename)
   136     content = get_content(filename)
   137     return render_template("/impressions_2013.html",
   137     return render_template("/impressions_2013.html",
   138                            act="competition_2013", content=content)
   138                            act="competition_2013", content=content)
   139 
   139 
   140 #ToDo content from rst missing
       
   141 @app.route("/competition/2014")
       
   142 def competition_2014():
       
   143     return render_template(get_locale() + "/archive/competitions/2014/index.html",
       
   144                            act="coursematerial")
       
   145 
   140 
   146 @app.errorhandler(404)
   141 @app.errorhandler(404)
   147 def page_not_found(e):
   142 def page_not_found(e):
   148     msg = _(u"Url: %(url)s not found" , url=request.url)
   143     msg = _(u"Url: %(url)s not found" , url=request.url)
   149     info = _(u"This information is not available!")
   144     info = _(u"This information is not available!")
Impressum Datenschutzerklärung