diff options
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 %} |