diff options
author | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-09 23:59:54 +0100 |
---|---|---|
committer | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-09 23:59:54 +0100 |
commit | 274d1790239f52440137cc922018a87af32a4ab7 (patch) | |
tree | 43149197b724f95af49c483194f2498b13f10ae2 /app/templates/_layout.html | |
parent | 79788b3590aba6384611a2c29012bbd821c290ee (diff) | |
download | klausuren-274d1790239f52440137cc922018a87af32a4ab7.tar.gz klausuren-274d1790239f52440137cc922018a87af32a4ab7.tar.bz2 klausuren-274d1790239f52440137cc922018a87af32a4ab7.zip |
Refactoring
Diffstat (limited to 'app/templates/_layout.html')
-rw-r--r-- | app/templates/_layout.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app/templates/_layout.html b/app/templates/_layout.html new file mode 100644 index 0000000..5eaef3f --- /dev/null +++ b/app/templates/_layout.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8" /> + <link rel="stylesheet" type="text/css" media="all" href="{{url_for('static', filename='style.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="/">Klausurenarchiv</a><small> @ spline</small></h1> + </div> + + <div id="content"> + + <div id="sub-header"> + {% if study %} + <p> + {% if not request.base_url.endswith(url_for('.upload', study=study, course= course))%} + {% if not request.base_url.endswith(url_for('forbidden')) %} + <a href="{{url_for('.upload', study=study, course=course)}}">neue Klausur hochladen</a> + {% endif %} + {% else %} + <a href="{{url_for('.courses_show', study=study, course=course)}}">zurück</a> + {% endif %} + </p> + <h2><a href="{{url_for('.courses_show', study=study)}}">{{study.capitalize()}}</a></h2> + {% endif %} + + <ul class="flashes"> + {% with messages = get_flashed_messages(with_categories=true) %} + {% for category, message in messages %} + <li class="{{ category }}">{{ message }}</li> + {% endfor %} + {% endwith %} + </ul> + </div> + + {% block body %}{% endblock %} + + </div> + + <footer> + <a href="https://gitlab.spline.inf.fu-berlin.de/cholin/klausuren">source</a> + </footer> + </body> +</html> |