diff options
author | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-07 18:09:58 +0100 |
---|---|---|
committer | Nico Geyso <nico.geyso@fu-berlin.de> | 2014-12-07 18:09:58 +0100 |
commit | 4ea12c4b97fc7775ab5ae3cb4607f715b880aede (patch) | |
tree | bdb798ffd244bee68b62d70da068ca795da766e6 /app/templates/module_show.html | |
parent | ab487c574b6ac405a869528516bed55473e93c5f (diff) | |
download | klausuren-4ea12c4b97fc7775ab5ae3cb4607f715b880aede.tar.gz klausuren-4ea12c4b97fc7775ab5ae3cb4607f715b880aede.tar.bz2 klausuren-4ea12c4b97fc7775ab5ae3cb4607f715b880aede.zip |
Remove dependency of pygit2 instead use directory listings
Diffstat (limited to 'app/templates/module_show.html')
-rw-r--r-- | app/templates/module_show.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/templates/module_show.html b/app/templates/module_show.html index cbaec74..e31da24 100644 --- a/app/templates/module_show.html +++ b/app/templates/module_show.html @@ -1,12 +1,12 @@ -{% macro render_module_list(module) %} +{% macro render_module_list(module, entries) %} <ul id="module-list"> -{% for year,files in module %} +{% for year,files in entries %} <li> {{year}} <ul> - {% for name,oid in files %} + {% for name in files %} <li> - <a href="{{url_for('study_show', study = study, oid=oid, filename=name)}}"> + <a href="{{url_for('.study_show', study = study, module=module, year=year, filename=name)}}"> {{name|truncate(40,True)}} </a> </li> @@ -24,7 +24,7 @@ <div id="module-index"> <h3>{{module}}</h3> - {{ render_module_list(entries)}} + {{ render_module_list(module, entries)}} </div> {% endblock %} |