mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 13:07:17 -04:00
Merge pull request #4191 from mfilser/attachments_show_filesize
Attachments, show file size in KB in card details
This commit is contained in:
commit
7577b246da
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -49,6 +49,9 @@ Template.attachmentsGalery.helpers({
|
|||
isBoardAdmin() {
|
||||
return Meteor.user().isBoardAdmin();
|
||||
},
|
||||
fileSize(size) {
|
||||
return Math.round(size / 1024);
|
||||
},
|
||||
});
|
||||
|
||||
Template.previewAttachedImagePopup.events({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue