summaryrefslogtreecommitdiffstats
path: root/templates/module_show.html
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-16 17:28:57 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-16 17:28:57 +0200
commit077b39a8bef9af1f09532f778fa445537f228bb0 (patch)
tree0420b096b03061e2238d5234b05e6b8c25638791 /templates/module_show.html
parent170264047e2f313e8c1395bdc8b5a08bbe21b1bf (diff)
downloadklausuren-077b39a8bef9af1f09532f778fa445537f228bb0.tar.gz
klausuren-077b39a8bef9af1f09532f778fa445537f228bb0.tar.bz2
klausuren-077b39a8bef9af1f09532f778fa445537f228bb0.zip
use real filename instead of sha hashes as name for file download
Diffstat (limited to 'templates/module_show.html')
-rw-r--r--templates/module_show.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/module_show.html b/templates/module_show.html
index 989d946..cbaec74 100644
--- a/templates/module_show.html
+++ b/templates/module_show.html
@@ -6,8 +6,9 @@
<ul>
{% for name,oid in files %}
<li>
- <a href="{{url_for('study_show', study = study,
- oid=oid)}}">{{name|truncate(40,True)}}</a>
+ <a href="{{url_for('study_show', study = study, oid=oid, filename=name)}}">
+ {{name|truncate(40,True)}}
+ </a>
</li>
{% endfor %}
</ul>