mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Attachment size, changed calculation to npm filesize (Card Details)
This commit is contained in:
parent
af120f2e0b
commit
110a83a736
2 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,7 @@ template(name="attachmentsGalery")
|
|||
span.attachment-thumbnail-ext= extension
|
||||
p.attachment-details
|
||||
= name
|
||||
span.file-size ({{fileSize size}} KB)
|
||||
span.file-size ({{fileSize size}})
|
||||
span.attachment-details-actions
|
||||
a.js-download(href="{{link}}?download=true", download="{{name}}")
|
||||
i.fa.fa-download
|
||||
|
|
|
@ -16,7 +16,8 @@ Template.attachmentsGalery.helpers({
|
|||
return Meteor.user().isBoardAdmin();
|
||||
},
|
||||
fileSize(size) {
|
||||
return Math.round(size / 1024);
|
||||
const ret = filesize(size);
|
||||
return ret;
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue