From 2f2704a99454bcf5702377aead5cbd124518cbb2 Mon Sep 17 00:00:00 2001 From: Tim-Oliver Husser Date: Thu, 12 Nov 2020 21:46:52 +0100 Subject: [PATCH] added download links for single files --- pyobs_archive/frontend/static/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyobs_archive/frontend/static/js/app.js b/pyobs_archive/frontend/static/js/app.js index cf2adbb..aea1c5c 100644 --- a/pyobs_archive/frontend/static/js/app.js +++ b/pyobs_archive/frontend/static/js/app.js @@ -81,7 +81,11 @@ $(function () { }, { field: 'basename', title: 'Name', - sortable: true + sortable: true, + formatter: function(value, row) { + let url = rootURL + 'frames/' + row.id + '/download/'; + return '' + value + '.fits.fz'; + } }, { field: 'DATE_OBS', title: 'Time',