mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 09:50:13 +01:00
Attachments, show file size in KB in card details
This commit is contained in:
parent
7e21589ee1
commit
f3d5b887c8
2 changed files with 4 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ template(name="attachmentsGalery")
|
||||||
+spinner
|
+spinner
|
||||||
p.attachment-details
|
p.attachment-details
|
||||||
= name
|
= name
|
||||||
|
span.file-size ({{fileSize size}} KB)
|
||||||
span.attachment-details-actions
|
span.attachment-details-actions
|
||||||
a.js-download(href="{{url download=true}}")
|
a.js-download(href="{{url download=true}}")
|
||||||
i.fa.fa-download
|
i.fa.fa-download
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,9 @@ Template.attachmentsGalery.helpers({
|
||||||
isBoardAdmin() {
|
isBoardAdmin() {
|
||||||
return Meteor.user().isBoardAdmin();
|
return Meteor.user().isBoardAdmin();
|
||||||
},
|
},
|
||||||
|
fileSize(size) {
|
||||||
|
return Math.round(size / 1024);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.previewAttachedImagePopup.events({
|
Template.previewAttachedImagePopup.events({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue