Skip to content
Snippets Groups Projects
Commit 84bf07e4 authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Show download link for all files of a document

parent 6152a57f
No related branches found
No related tags found
1 merge request!26Minor fixes for studydocs
......@@ -49,7 +49,7 @@ export default class studydocList {
m('td', doc.professor),
m('td', doc.semester),
m('td', doc.author),
m('td', m('a', { href: apiUrl + doc.files[0].file }, 'download')),
m('td', doc.files.map(item => m('a', { href: `${apiUrl}${item.file}`, target: '_blank' }, item.name))),
]))),
]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment