summaryrefslogtreecommitdiffstats
path: root/app/templates/module_show.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/module_show.html')
-rw-r--r--app/templates/module_show.html30
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 %}