attachments.jade 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. template(name="cardAttachmentsPopup")
  2. ul.pop-over-list
  3. li
  4. input.js-attach-file.hide(type="file" name="file" multiple)
  5. a.js-computer-upload {{_ 'computer'}}
  6. li
  7. a.js-upload-clipboard-image {{_ 'clipboard'}}
  8. template(name="previewClipboardImagePopup")
  9. p <kbd>Ctrl</kbd>+<kbd>V</kbd> {{_ "paste-or-dragdrop"}}
  10. img.preview-clipboard-image()
  11. button.primary.js-upload-pasted-image {{_ 'upload'}}
  12. template(name="previewAttachedImagePopup")
  13. img.preview-large-image.js-large-image-clicked(src="{{url}}")
  14. template(name="attachmentDeletePopup")
  15. p {{_ "attachment-delete-pop"}}
  16. button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
  17. template(name="uploadingPopup")
  18. .uploading-info
  19. span.upload-percentage {{progress}}%
  20. .upload-progress-frame
  21. .upload-progress-bar(style="width: {{progress}}%;")
  22. span.upload-size {{fileSize}}
  23. template(name="attachmentsGalery")
  24. .attachments-galery
  25. each attachments
  26. .attachment-item
  27. a.attachment-thumbnail.swipebox(href="{{url}}" download="{{name}}" title="{{name}}")
  28. if isUploaded
  29. if isImage
  30. img.attachment-thumbnail-img(src="{{url}}")
  31. else
  32. span.attachment-thumbnail-ext= extension
  33. else
  34. +spinner
  35. p.attachment-details
  36. = name
  37. span.attachment-details-actions
  38. a.js-download(href="{{url download=true}}" download="{{name}}")
  39. i.fa.fa-download
  40. | {{_ 'download'}}
  41. if currentUser.isBoardMember
  42. unless currentUser.isCommentOnly
  43. unless currentUser.isWorker
  44. if isImage
  45. a(class="{{#if $eq ../coverId _id}}js-remove-cover{{else}}js-add-cover{{/if}}")
  46. i.fa.fa-thumb-tack
  47. if($eq ../coverId _id)
  48. | {{_ 'remove-cover'}}
  49. else
  50. | {{_ 'add-cover'}}
  51. a.js-confirm-delete
  52. i.fa.fa-close
  53. | {{_ 'delete'}}
  54. if currentUser.isBoardMember
  55. unless currentUser.isCommentOnly
  56. unless currentUser.isWorker
  57. //li.attachment-item.add-attachment
  58. a.js-add-attachment
  59. i.fa.fa-plus
  60. | {{_ 'add-attachment' }}