diff --git a/standards/templates/standards/standards_single.html b/standards/templates/standards/standards_single.html index 1f53759..74d64fe 100644 --- a/standards/templates/standards/standards_single.html +++ b/standards/templates/standards/standards_single.html @@ -136,15 +136,19 @@
- {% for files in standard.addedfiles_nc.all %}
-
- TODO: HIER DOWNLOAD ERMÖGLICH: {{files.nc_id}}
+ {% for file in standard.addedfiles_nc.all %}
+ {% getNCFileInfos request file.nc_id as filename %}
+ {% getNCFileInfosURL request file.nc_id as filelink %}
+ {% getNextcloudURL as nc_url %}
+ {{filename|truncatechars:30}}
{% endfor %}
- {% for files in standard.addedfiles.all %}
- {{files.name|truncatechars:30}}
+ {% for files in standard.addedfiles_nc.all %}
+ {% getNCFileInfos request files.nc_id as filename %}
+ {{filename|truncatechars:30}}
{% endfor %}