summaryrefslogtreecommitdiffstats
path: root/client/components/cards/attachments.jade
diff options
context:
space:
mode:
authorfloatinghotpot <rjfun.mobile@gmail.com>2015-11-13 11:13:54 +0800
committerfloatinghotpot <rjfun.mobile@gmail.com>2015-11-13 11:13:54 +0800
commiteaf2afb44cb9de64b1ed13cb795efd0f44c541ec (patch)
treea806c9fecfa22bcb8a0f9ff3375aefa3652818f9 /client/components/cards/attachments.jade
parent41b23f88aea0f421226f92b081cdb1b61c64bde4 (diff)
downloadwekan-eaf2afb44cb9de64b1ed13cb795efd0f44c541ec.tar.gz
wekan-eaf2afb44cb9de64b1ed13cb795efd0f44c541ec.tar.bz2
wekan-eaf2afb44cb9de64b1ed13cb795efd0f44c541ec.zip
add preview attached image, allow upload image from clipboard and drag & drp
Diffstat (limited to 'client/components/cards/attachments.jade')
-rw-r--r--client/components/cards/attachments.jade12
1 files changed, 11 insertions, 1 deletions
diff --git a/client/components/cards/attachments.jade b/client/components/cards/attachments.jade
index 168fc2c8..79511ac9 100644
--- a/client/components/cards/attachments.jade
+++ b/client/components/cards/attachments.jade
@@ -3,6 +3,16 @@ template(name="cardAttachmentsPopup")
li
input.js-attach-file.hide(type="file" name="file" multiple)
a.js-computer-upload {{_ 'computer'}}
+ li
+ a.js-upload-clipboard-image {{_ 'clipboard'}}
+
+template(name="previewClipboardImagePopup")
+ p {{_ "paste-or-dragdrop"}}
+ img.preview-clipboard-image()
+ button.primary.js-upload-pasted-image {{_ 'upload'}}
+
+template(name="previewAttachedImagePopup")
+ img.preview-large-image.js-large-image-clicked(src="{{pathFor url}}")
template(name="attachmentDeletePopup")
p {{_ "attachment-delete-pop"}}
@@ -15,7 +25,7 @@ template(name="attachmentsGalery")
.attachment-thumbnail
if isUploaded
if isImage
- img.attachment-thumbnail-img(src="{{pathFor url}}")
+ img.attachment-thumbnail-img.js-preview-image(src="{{pathFor url}}")
else
span.attachment-thumbnail-ext= extension
else