summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-11 16:44:41 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-11 16:44:41 +0200
commitb49486ede2c2354bdc97a1d7668d930a1a77e73a (patch)
tree40056e755a78d74a1adb1a2980b16f25bf1380fe
parentfa6be156f6db90ec42f5eeba354761ffe7109cf8 (diff)
downloadklausuren-b49486ede2c2354bdc97a1d7668d930a1a77e73a.tar.gz
klausuren-b49486ede2c2354bdc97a1d7668d930a1a77e73a.tar.bz2
klausuren-b49486ede2c2354bdc97a1d7668d930a1a77e73a.zip
403 error page should not have upload link
-rw-r--r--templates/layout.html4
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 %}