summaryrefslogtreecommitdiffstats
path: root/templates/module_show.html
blob: 56fcf15a9e753d17d01beab94c90fb708dda7e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% 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)}}">{{name|truncate(40,True)}}</a>
      </li>
    {% endfor %}
    </ul>
  </li>
{% else %}
  <li>Keine Einträge bisher</li>
{% endfor %}
</ul>
{% endmacro %}

{% extends "layout.html" %}
{% block body %}
    <p class="right"> 
      <a href="{{url_for('study_index', study=study)}}">zurück zur Übersicht</a>
    </p>

  <div id="module-index">
    <h3>{{module}}</h3>

    {{ render_module_list(entries)}}
  </div>

{% endblock %}