diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-15 16:47:36 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-15 16:47:36 +0200 |
commit | 2e2e838a16e23e0f71014c9845d0c2d6f7308bbb (patch) | |
tree | 497e4caaa5853e026733966585588e73a2f672ee | |
parent | da076f2758f7fa7cd842d5ae66fd389c81c41316 (diff) | |
download | klausuren-2e2e838a16e23e0f71014c9845d0c2d6f7308bbb.tar.gz klausuren-2e2e838a16e23e0f71014c9845d0c2d6f7308bbb.tar.bz2 klausuren-2e2e838a16e23e0f71014c9845d0c2d6f7308bbb.zip |
added missing module var
-rw-r--r-- | app.py | 3 | ||||
-rw-r--r-- | templates/layout.html | 3 |
2 files changed, 3 insertions, 3 deletions
@@ -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 %} |