Attachments, show file size in KB in card details

This commit is contained in:
Martin Filser 2021-11-24 09:38:56 +01:00
parent 7e21589ee1
commit f3d5b887c8
2 changed files with 4 additions and 0 deletions

View file

@ -44,6 +44,7 @@ template(name="attachmentsGalery")
+spinner
p.attachment-details
= name
span.file-size ({{fileSize size}} KB)
span.attachment-details-actions
a.js-download(href="{{url download=true}}")
i.fa.fa-download

View file

@ -49,6 +49,9 @@ Template.attachmentsGalery.helpers({
isBoardAdmin() {
return Meteor.user().isBoardAdmin();
},
fileSize(size) {
return Math.round(size / 1024);
},
});
Template.previewAttachedImagePopup.events({