Skip to content

Commit

Permalink
added download links for single files
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Nov 12, 2020
1 parent 19e9d1d commit 2f2704a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyobs_archive/frontend/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<a href="' + url + '">' + value + '.fits.fz</a>';
}
}, {
field: 'DATE_OBS',
title: 'Time',
Expand Down

0 comments on commit 2f2704a

Please sign in to comment.