summaryrefslogtreecommitdiffstats
path: root/app/templates/layout.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/layout.html')
-rw-r--r--app/templates/layout.html25
1 files changed, 6 insertions, 19 deletions
diff --git a/app/templates/layout.html b/app/templates/layout.html
index 4de48c8..06901e9 100644
--- a/app/templates/layout.html
+++ b/app/templates/layout.html
@@ -9,16 +9,7 @@
</head>
<body>
<div id="header">
- <h1><a href="/">Archiv</a><small> @ spline</small></h1>
- {% if study %}
- <p>
- <b>Tip</b>: Du kannst alle Klausuren auch als
- {% set path = 'studies/' + study %}
- <a href="{{url_for('static', filename=path + '.zip')}}">ZIP</a>- oder
- <a href="{{url_for('static', filename=path + '.tar.gz')}}">TAR-GZ</a>-Archiv, sowie via
- <a href="{{url_for('static', filename=path + '.git')}}">git</a> herunterladen
- </p>
- {% endif %}
+ <h1><a href="/">Klausurenarchiv</a><small> @ spline</small></h1>
</div>
<div id="content">
@@ -26,15 +17,15 @@
<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('forbidden')) %}
- <a href="{{url_for('upload', study=study, module=module)}}">neue Klausur hochladen</a>
+ {% if not request.base_url.endswith(url_for('.upload', study=study, module = module))%}
+ {% if not request.base_url.endswith(url_for('errorhandler')) %}
+ <a href="{{url_for('main.upload', study=study, module=module)}}">neue Klausur hochladen</a>
{% endif %}
{% else %}
- <a href="{{url_for('study_index', study=study, module=module)}}">zurück</a>
+ <a href="{{url_for('main.study_index', study=study, module=module)}}">zurück</a>
{% endif %}
</p>
- <h2><a href="{{url_for('study_index', study=study)}}">{{study.capitalize()}}</a></h2>
+ <h2><a href="{{url_for('main.study_index', study=study)}}">{{study.capitalize()}}</a></h2>
{% endif %}
<ul class="flashes">
@@ -51,11 +42,7 @@
</div>
<footer>
- <a href="https://github.com/libgit2/libgit2">libgit2</a>
- |
<a href="https://gitlab.spline.inf.fu-berlin.de/cholin/klausuren">source</a>
- |
- <a href="https://github.com/libgit2/pygit2">pygit2</a>
</footer>
</body>
</html>