diff options
-rw-r--r-- | app.py | 2 | ||||
-rw-r--r-- | templates/module_show.html | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -97,7 +97,7 @@ def show(oid): @app.route('/modules/<module>') def list(module=None): if module: - return render_template('module_show.html', module=fit.get_module(module)) + return render_template('module_show.html', module=module, entries=fit.get_module(module)) return render_template('module_list.html', modules=fit.get_modules()) diff --git a/templates/module_show.html b/templates/module_show.html index 940647d..44d7d6d 100644 --- a/templates/module_show.html +++ b/templates/module_show.html @@ -1,9 +1,13 @@ {% extends "layout.html" %} {% block body %} - <h2></h2> + <h2>{{module}}</h2> + + <p> + <a href="{{url_for('list')}}">zurück zur Übersicht</a> + </p> <ul> - {% for year,files in module %} + {% for year,files in entries %} <li> {{year}} <ul> |