summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-15 16:47:36 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-15 16:47:36 +0200
commit2e2e838a16e23e0f71014c9845d0c2d6f7308bbb (patch)
tree497e4caaa5853e026733966585588e73a2f672ee
parentda076f2758f7fa7cd842d5ae66fd389c81c41316 (diff)
downloadklausuren-2e2e838a16e23e0f71014c9845d0c2d6f7308bbb.tar.gz
klausuren-2e2e838a16e23e0f71014c9845d0c2d6f7308bbb.tar.bz2
klausuren-2e2e838a16e23e0f71014c9845d0c2d6f7308bbb.zip
added missing module var
-rw-r--r--app.py3
-rw-r--r--templates/layout.html3
2 files changed, 3 insertions, 3 deletions
diff --git a/app.py b/app.py
index 3fab478..9143fe1 100644
--- a/app.py
+++ b/app.py
@@ -99,7 +99,8 @@ def upload(study, module = None):
try: form.module.data = [k for (k,v) in form.module.choices if v == module][0]
except: pass
- return render_template('upload.html', study = study, form = form)
+ return render_template('upload.html',
+ study = study, form = form, module=module)
diff --git a/templates/layout.html b/templates/layout.html
index bad67a2..0089f04 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -26,8 +26,7 @@
<div id="sub-header">
{% if study %}
<p>
- {% if not request.base_url.endswith(url_for('upload', study=study
- , module = module))%}
+ {% if not request.base_url.endswith(url_for('upload', study=study, module = module))%}
{% if not request.base_url.endswith(url_for('forbidden')) %}
<a href="{{url_for('upload', study=study, module=module)}}">neue Klausur hochladen</a>
{% endif %}