1.1 --- a/pymove3d.py Sun Jan 19 13:37:33 2014 +0100
1.2 +++ b/pymove3d.py Sun Jan 19 13:53:18 2014 +0100
1.3 @@ -88,37 +88,44 @@
1.4 def competition():
1.5 filename = os.path.join("templates", get_locale(), "rst", "competition.rst")
1.6 content = get_content(filename)
1.7 - return render_template("/competition.html", act="competition", content=content)
1.8 + return render_template("/content.html", act="competition", content=content)
1.9
1.10 @app.route("/task")
1.11 def task():
1.12 filename = os.path.join("templates", get_locale(), "rst", "task.rst")
1.13 content = get_content(filename)
1.14 - return render_template("/task.html", act="task", content=content)
1.15 + return render_template("/content.html", act="task", content=content)
1.16
1.17 @app.route("/submission")
1.18 def submission():
1.19 filename = os.path.join("templates", get_locale(), "rst", "submission.rst")
1.20 content = get_content(filename)
1.21 - return render_template("/submission.html", act="submission", content=content)
1.22 + return render_template("/content.html", act="submission", content=content)
1.23
1.24 @app.route("/coursematerial")
1.25 def coursematerial():
1.26 filename = os.path.join("templates", get_locale(), "rst", "coursematerial.rst")
1.27 content = get_content(filename)
1.28 - return render_template("/coursematerial.html", act="coursematerial", content=content)
1.29 + return render_template("/content.html", act="coursematerial", content=content)
1.30
1.31 @app.route("/imprint")
1.32 def imprint():
1.33 filename = os.path.join("templates", get_locale(), "rst", "imprint.rst")
1.34 content = get_content(filename)
1.35 - return render_template("/imprint.html", act="imprint", content=content)
1.36 + return render_template("/content.html", act="imprint", content=content)
1.37
1.38 @app.route("/privacy")
1.39 def privacy():
1.40 filename = os.path.join("templates", get_locale(), "rst", "privacy.rst")
1.41 content = get_content(filename)
1.42 - return render_template("/privacy.html", act="privacy", content=content)
1.43 + return render_template("/content.html", act="privacy", content=content)
1.44 +
1.45 +@app.route("/dates")
1.46 +def dates():
1.47 + filename = os.path.join("templates", get_locale(), "rst", "dates.rst")
1.48 + content = get_content(filename)
1.49 + return render_template("/content.html",
1.50 + act="dates", content=content)
1.51
1.52 @app.route("/competition/2013")
1.53 def competition_2013():
1.54 @@ -132,15 +139,6 @@
1.55 return render_template(get_locale() + "/archive/competitions/2014/index.html",
1.56 act="coursematerial")
1.57
1.58 -
1.59 -@app.route("/dates")
1.60 -def dates():
1.61 - filename = os.path.join("templates", get_locale(), "rst", "dates.rst")
1.62 - content = get_content(filename)
1.63 - return render_template("/dates.html",
1.64 - act="dates", content=content)
1.65 -
1.66 -
1.67 @app.errorhandler(404)
1.68 def page_not_found(e):
1.69 msg = _(u"Url: %(url)s not found" , url=request.url)
2.1 --- a/templates/competition.html Sun Jan 19 13:37:33 2014 +0100
2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2.3 @@ -1,8 +0,0 @@
2.4 -{% extends "theme.html" %}
2.5 -{% block body %}
2.6 -<div class="container">
2.7 - <div class="col-lg-12">
2.8 - {{ content|safe }}
2.9 -</div>
2.10 -</div>
2.11 -{% endblock %}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/templates/content.html Sun Jan 19 13:53:18 2014 +0100
3.3 @@ -0,0 +1,8 @@
3.4 +{% extends "theme.html" %}
3.5 +{% block body %}
3.6 +<div class="container">
3.7 + <div class="col-lg-12">
3.8 + {{ content|safe }}
3.9 +</div>
3.10 +</div>
3.11 +{% endblock %}
4.1 --- a/templates/coursematerial.html Sun Jan 19 13:37:33 2014 +0100
4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
4.3 @@ -1,9 +0,0 @@
4.4 -{% extends "theme.html" %}
4.5 -{% block body %}
4.6 -<div class="container">
4.7 - <div class="col-lg-12">
4.8 - {{ content|safe }}
4.9 - </div>
4.10 -</div>
4.11 -
4.12 -{% endblock %}
5.1 --- a/templates/dates.html Sun Jan 19 13:37:33 2014 +0100
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,8 +0,0 @@
5.4 -{% extends "theme.html" %}
5.5 -{% block body %}
5.6 -<div class="container">
5.7 - <div class="col-lg-12">
5.8 -{{ content|safe }}
5.9 - </div>
5.10 -</div>
5.11 -{% endblock %}
6.1 --- a/templates/imprint.html Sun Jan 19 13:37:33 2014 +0100
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,7 +0,0 @@
6.4 -{% extends "theme.html" %}
6.5 -{% block body %}
6.6 -<div class="container">
6.7 - <div class="col-lg-12">
6.8 - {{ content|safe }}
6.9 -</div></div>
6.10 -{% endblock %}
7.1 --- a/templates/privacy.html Sun Jan 19 13:37:33 2014 +0100
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,8 +0,0 @@
7.4 -{% extends "theme.html" %}
7.5 -
7.6 -{% block body %}
7.7 -<div class="container">
7.8 - <div class="col-lg-12">
7.9 - {{ content|safe }}
7.10 -</div></div>
7.11 -{% endblock %}
8.1 --- a/templates/submission.html Sun Jan 19 13:37:33 2014 +0100
8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
8.3 @@ -1,8 +0,0 @@
8.4 -{% extends "theme.html" %}
8.5 -{% block body %}
8.6 -<div class="container">
8.7 - <div class="col-lg-12">
8.8 - {{ content|safe }}
8.9 - </div>
8.10 - </div>
8.11 -{% endblock %}
9.1 --- a/templates/task.html Sun Jan 19 13:37:33 2014 +0100
9.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
9.3 @@ -1,8 +0,0 @@
9.4 -{% extends "theme.html" %}
9.5 -{% block body %}
9.6 -<div class="container">
9.7 - <div class="col-lg-12">
9.8 - {{ content|safe }}
9.9 -</div>
9.10 -</div>
9.11 -{% endblock %}