diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-11 16:44:41 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-11 16:44:41 +0200 |
commit | b49486ede2c2354bdc97a1d7668d930a1a77e73a (patch) | |
tree | 40056e755a78d74a1adb1a2980b16f25bf1380fe /templates | |
parent | fa6be156f6db90ec42f5eeba354761ffe7109cf8 (diff) | |
download | klausuren-b49486ede2c2354bdc97a1d7668d930a1a77e73a.tar.gz klausuren-b49486ede2c2354bdc97a1d7668d930a1a77e73a.tar.bz2 klausuren-b49486ede2c2354bdc97a1d7668d930a1a77e73a.zip |
403 error page should not have upload link
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/layout.html b/templates/layout.html index 5f54e1c..19d0e6f 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -20,7 +20,9 @@ <div id="sub-header"> <p> {% if not request.base_url.endswith(url_for('upload')) %} - <a href="{{url_for('upload')}}">neue Klausur hochladen</a> + {% if not request.base_url.endswith(url_for('forbidden')) %} + <a href="{{url_for('upload')}}">neue Klausur hochladen</a> + {% endif %} {% else %} <a href="{{url_for('index')}}">zurück</a> {% endif %} |