# HG changeset patch # User Reimar Bauer # Date 1390135998 -3600 # Node ID e424a57cba5d799f9ff80a27057a3f3d496aee2c # Parent 934e2d8e279d8d1dbe906e1119cee1c1f92adc8d amount of templates reduced diff -r 934e2d8e279d -r e424a57cba5d pymove3d.py --- a/pymove3d.py Sun Jan 19 13:37:33 2014 +0100 +++ b/pymove3d.py Sun Jan 19 13:53:18 2014 +0100 @@ -88,37 +88,44 @@ def competition(): filename = os.path.join("templates", get_locale(), "rst", "competition.rst") content = get_content(filename) - return render_template("/competition.html", act="competition", content=content) + return render_template("/content.html", act="competition", content=content) @app.route("/task") def task(): filename = os.path.join("templates", get_locale(), "rst", "task.rst") content = get_content(filename) - return render_template("/task.html", act="task", content=content) + return render_template("/content.html", act="task", content=content) @app.route("/submission") def submission(): filename = os.path.join("templates", get_locale(), "rst", "submission.rst") content = get_content(filename) - return render_template("/submission.html", act="submission", content=content) + return render_template("/content.html", act="submission", content=content) @app.route("/coursematerial") def coursematerial(): filename = os.path.join("templates", get_locale(), "rst", "coursematerial.rst") content = get_content(filename) - return render_template("/coursematerial.html", act="coursematerial", content=content) + return render_template("/content.html", act="coursematerial", content=content) @app.route("/imprint") def imprint(): filename = os.path.join("templates", get_locale(), "rst", "imprint.rst") content = get_content(filename) - return render_template("/imprint.html", act="imprint", content=content) + return render_template("/content.html", act="imprint", content=content) @app.route("/privacy") def privacy(): filename = os.path.join("templates", get_locale(), "rst", "privacy.rst") content = get_content(filename) - return render_template("/privacy.html", act="privacy", content=content) + return render_template("/content.html", act="privacy", content=content) + +@app.route("/dates") +def dates(): + filename = os.path.join("templates", get_locale(), "rst", "dates.rst") + content = get_content(filename) + return render_template("/content.html", + act="dates", content=content) @app.route("/competition/2013") def competition_2013(): @@ -132,15 +139,6 @@ return render_template(get_locale() + "/archive/competitions/2014/index.html", act="coursematerial") - -@app.route("/dates") -def dates(): - filename = os.path.join("templates", get_locale(), "rst", "dates.rst") - content = get_content(filename) - return render_template("/dates.html", - act="dates", content=content) - - @app.errorhandler(404) def page_not_found(e): msg = _(u"Url: %(url)s not found" , url=request.url) diff -r 934e2d8e279d -r e424a57cba5d templates/competition.html --- a/templates/competition.html Sun Jan 19 13:37:33 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -{% extends "theme.html" %} -{% block body %} -
-
- {{ content|safe }} -
-
-{% endblock %} diff -r 934e2d8e279d -r e424a57cba5d templates/content.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/content.html Sun Jan 19 13:53:18 2014 +0100 @@ -0,0 +1,8 @@ +{% extends "theme.html" %} +{% block body %} +
+
+ {{ content|safe }} +
+
+{% endblock %} diff -r 934e2d8e279d -r e424a57cba5d templates/coursematerial.html --- a/templates/coursematerial.html Sun Jan 19 13:37:33 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -{% extends "theme.html" %} -{% block body %} -
-
- {{ content|safe }} -
-
- -{% endblock %} diff -r 934e2d8e279d -r e424a57cba5d templates/dates.html --- a/templates/dates.html Sun Jan 19 13:37:33 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -{% extends "theme.html" %} -{% block body %} -
-
-{{ content|safe }} -
-
-{% endblock %} diff -r 934e2d8e279d -r e424a57cba5d templates/imprint.html --- a/templates/imprint.html Sun Jan 19 13:37:33 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -{% extends "theme.html" %} -{% block body %} -
-
- {{ content|safe }} -
-{% endblock %} diff -r 934e2d8e279d -r e424a57cba5d templates/privacy.html --- a/templates/privacy.html Sun Jan 19 13:37:33 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -{% extends "theme.html" %} - -{% block body %} -
-
- {{ content|safe }} -
-{% endblock %} diff -r 934e2d8e279d -r e424a57cba5d templates/submission.html --- a/templates/submission.html Sun Jan 19 13:37:33 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -{% extends "theme.html" %} -{% block body %} -
-
- {{ content|safe }} -
-
-{% endblock %} diff -r 934e2d8e279d -r e424a57cba5d templates/task.html --- a/templates/task.html Sun Jan 19 13:37:33 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -{% extends "theme.html" %} -{% block body %} -
-
- {{ content|safe }} -
-
-{% endblock %}