Skip to content

Commit 2f2704a

Browse files
committed
added download links for single files
1 parent 19e9d1d commit 2f2704a

File tree

1 file changed

+5
-1
lines changed
  • pyobs_archive/frontend/static/js

1 file changed

+5
-1
lines changed

pyobs_archive/frontend/static/js/app.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ $(function () {
8181
}, {
8282
field: 'basename',
8383
title: 'Name',
84-
sortable: true
84+
sortable: true,
85+
formatter: function(value, row) {
86+
let url = rootURL + 'frames/' + row.id + '/download/';
87+
return '<a href="' + url + '">' + value + '.fits.fz</a>';
88+
}
8589
}, {
8690
field: 'DATE_OBS',
8791
title: 'Time',

0 commit comments

Comments
 (0)