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/module_show.html | |
parent | c4a267e9cf9073547063d60f7a49b093df0e4570 (diff) | |
download | klausuren-ab487c574b6ac405a869528516bed55473e93c5f.tar.gz klausuren-ab487c574b6ac405a869528516bed55473e93c5f.tar.bz2 klausuren-ab487c574b6ac405a869528516bed55473e93c5f.zip |
Restructure project
Diffstat (limited to 'app/templates/module_show.html')
-rw-r--r-- | app/templates/module_show.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/templates/module_show.html b/app/templates/module_show.html new file mode 100644 index 0000000..cbaec74 --- /dev/null +++ b/app/templates/module_show.html @@ -0,0 +1,30 @@ +{% macro render_module_list(module) %} +<ul id="module-list"> +{% for year,files in module %} + <li> + {{year}} + <ul> + {% for name,oid in files %} + <li> + <a href="{{url_for('study_show', study = study, oid=oid, filename=name)}}"> + {{name|truncate(40,True)}} + </a> + </li> + {% endfor %} + </ul> + </li> +{% else %} + <li>Keine Einträge bisher</li> +{% endfor %} +</ul> +{% endmacro %} + +{% extends "layout.html" %} +{% block body %} + <div id="module-index"> + <h3>{{module}}</h3> + + {{ render_module_list(entries)}} + </div> + +{% endblock %} |