diff options
author | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-07 16:02:27 +0100 |
---|---|---|
committer | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-07 16:02:27 +0100 |
commit | ab487c574b6ac405a869528516bed55473e93c5f (patch) | |
tree | 51a8de9c4662fa3dcae87765430abeebfe7d89ad /app/templates/layout.html | |
parent | c4a267e9cf9073547063d60f7a49b093df0e4570 (diff) | |
download | klausuren-ab487c574b6ac405a869528516bed55473e93c5f.tar.gz klausuren-ab487c574b6ac405a869528516bed55473e93c5f.tar.bz2 klausuren-ab487c574b6ac405a869528516bed55473e93c5f.zip |
Restructure project
Diffstat (limited to 'app/templates/layout.html')
-rw-r--r-- | app/templates/layout.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/app/templates/layout.html b/app/templates/layout.html new file mode 100644 index 0000000..4de48c8 --- /dev/null +++ b/app/templates/layout.html @@ -0,0 +1,61 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8" /> + <link rel="stylesheet" type="text/css" media="all" href="{{url_for('static', + filename='style_v3.css')}}" /> + <script type="text/javascript" src="{{url_for('static',filename='jquery-1.8.0.min.js')}}"></script> + <title>Fit</title> + </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 %} + </div> + + <div id="content"> + + <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> + {% endif %} + {% else %} + <a href="{{url_for('study_index', study=study, module=module)}}">zurück</a> + {% endif %} + </p> + <h2><a href="{{url_for('study_index', study=study)}}">{{study.capitalize()}}</a></h2> + {% endif %} + + <ul class="flashes"> + {% with messages = get_flashed_messages() %} + {% for message in messages %} + <li>{{ message }}</li> + {% endfor %} + {% endwith %} + </ul> + </div> + + {% block body %}{% endblock %} + + </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> |