diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-06-13 15:04:55 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-06-13 15:04:55 +0200 |
commit | e001c3409a3911089adddad7bbd0e350aa152cb8 (patch) | |
tree | 499484bf1e5a64129440190ebeca72ff33a8dcbd /client/components/cards/attachments.jade | |
parent | c8945679872a0708eb67a477a99a65d508c84cb0 (diff) | |
download | wekan-e001c3409a3911089adddad7bbd0e350aa152cb8.tar.gz wekan-e001c3409a3911089adddad7bbd0e350aa152cb8.tar.bz2 wekan-e001c3409a3911089adddad7bbd0e350aa152cb8.zip |
Fix card attachments
Closes #192.
Diffstat (limited to 'client/components/cards/attachments.jade')
-rw-r--r-- | client/components/cards/attachments.jade | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/client/components/cards/attachments.jade b/client/components/cards/attachments.jade new file mode 100644 index 00000000..4170d195 --- /dev/null +++ b/client/components/cards/attachments.jade @@ -0,0 +1,40 @@ +template(name="cardAttachmentsPopup") + ul.pop-over-list + li + input.js-attach-file.hide(type="file" name="file" multiple) + a.js-computer-upload {{_ 'computer'}} + +template(name="attachmentDeletePopup") + p {{_ "attachment-delete-pop"}} + button.js-confirm.negate.full(type="submit") {{_ 'delete'}} + +template(name="attachmentsGalery") + .attachments-galery + each attachments + a.attachment-item.js-open-viewer(title="{{_ 'added'}} {{ moment uploadedAt }}") + .attachment-thumbnail + if isUploaded + if isImage + img.attachment-thumbnail-img(src=url) + else + span.attachment-thumbnail-ext= extension + else + +spinner + p.attachment-details + = name + span.attachment-details-actions + a.js-download + i.fa.fa-download + | {{_ 'download'}} + if isImage + a(class="{{#if $eq ../coverId _id}}js-remove-cover{{else}}js-add-cover{{/if}}") + i.fa.fa-thumb-tack + if($eq ../coverId _id) + | {{_ 'remove-cover'}} + else + | {{_ 'add-cover'}} + a.js-confirm-delete + i.fa.fa-close + | {{_ 'delete'}} + + a.attachment-item.add-attachment.js-add-attachment {{_ 'add-attachment' }} |