2015-06-13 15:04:55 +02:00
|
|
|
template(name="cardAttachmentsPopup")
|
|
|
|
|
ul.pop-over-list
|
|
|
|
|
li
|
|
|
|
|
input.js-attach-file.hide(type="file" name="file" multiple)
|
|
|
|
|
a.js-computer-upload {{_ 'computer'}}
|
2015-11-13 11:13:54 +08:00
|
|
|
li
|
|
|
|
|
a.js-upload-clipboard-image {{_ 'clipboard'}}
|
|
|
|
|
|
|
|
|
|
template(name="previewClipboardImagePopup")
|
2015-11-15 15:39:11 -08:00
|
|
|
p <kbd>Ctrl</kbd>+<kbd>V</kbd> {{_ "paste-or-dragdrop"}}
|
2015-11-13 11:13:54 +08:00
|
|
|
img.preview-clipboard-image()
|
|
|
|
|
button.primary.js-upload-pasted-image {{_ 'upload'}}
|
|
|
|
|
|
2015-06-13 15:04:55 +02:00
|
|
|
template(name="attachmentDeletePopup")
|
|
|
|
|
p {{_ "attachment-delete-pop"}}
|
|
|
|
|
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|
|
|
|
|
|
|
|
|
|
template(name="attachmentsGalery")
|
|
|
|
|
.attachments-galery
|
|
|
|
|
each attachments
|
2017-12-08 23:57:53 +07:00
|
|
|
.attachment-item
|
2022-07-16 09:41:35 +02:00
|
|
|
a.attachment-thumbnail.swipebox(href="{{link}}" title="{{name}}")
|
2022-04-22 11:27:03 +02:00
|
|
|
if link
|
2015-06-13 15:04:55 +02:00
|
|
|
if isImage
|
2020-09-17 00:13:28 -05:00
|
|
|
img.attachment-thumbnail-img(src="{{link}}")
|
2021-09-17 04:16:56 +03:00
|
|
|
else if($eq extension 'mp3')
|
|
|
|
|
video(width="100%" height="100%" controls="true")
|
2020-09-17 00:13:28 -05:00
|
|
|
source(src="{{link}}" type="audio/mpeg")
|
2021-09-17 04:16:56 +03:00
|
|
|
else if($eq extension 'ogg')
|
|
|
|
|
video(width="100%" height="100%" controls="true")
|
2020-09-17 00:13:28 -05:00
|
|
|
source(src="{{link}}" type="video/ogg")
|
2021-09-17 04:16:56 +03:00
|
|
|
else if($eq extension 'webm')
|
|
|
|
|
video(width="100%" height="100%" controls="true")
|
2020-09-17 00:13:28 -05:00
|
|
|
source(src="{{link}}" type="video/webm")
|
2021-09-17 04:16:56 +03:00
|
|
|
else if($eq extension 'mp4')
|
|
|
|
|
video(width="100%" height="100%" controls="true")
|
2020-09-17 00:13:28 -05:00
|
|
|
source(src="{{link}}" type="video/mp4")
|
2015-06-13 15:04:55 +02:00
|
|
|
else
|
|
|
|
|
span.attachment-thumbnail-ext= extension
|
|
|
|
|
else
|
2022-04-22 11:27:03 +02:00
|
|
|
+spinner
|
2015-06-13 15:04:55 +02:00
|
|
|
p.attachment-details
|
|
|
|
|
= name
|
2021-11-24 09:38:56 +01:00
|
|
|
span.file-size ({{fileSize size}} KB)
|
2015-06-13 15:04:55 +02:00
|
|
|
span.attachment-details-actions
|
2020-09-17 01:36:58 -05:00
|
|
|
a.js-download(href="{{link}}?download=true", download="{{name}}")
|
2015-06-13 15:04:55 +02:00
|
|
|
i.fa.fa-download
|
|
|
|
|
| {{_ 'download'}}
|
2015-09-06 03:42:43 +02:00
|
|
|
if currentUser.isBoardMember
|
2019-07-24 15:01:05 +03:00
|
|
|
unless currentUser.isCommentOnly
|
2020-01-05 21:28:14 +02:00
|
|
|
unless currentUser.isWorker
|
2022-03-27 23:58:41 +02:00
|
|
|
a.fa.fa-navicon.attachment-details-menu.js-open-attachment-menu(title="{{_ 'attachmentActionsPopup-title'}}")
|
2015-06-13 15:04:55 +02:00
|
|
|
|
2015-09-06 03:42:43 +02:00
|
|
|
if currentUser.isBoardMember
|
2019-07-24 15:01:05 +03:00
|
|
|
unless currentUser.isCommentOnly
|
2020-01-05 21:28:14 +02:00
|
|
|
unless currentUser.isWorker
|
2020-02-12 02:08:29 +02:00
|
|
|
//li.attachment-item.add-attachment
|
2021-06-09 20:08:42 +03:00
|
|
|
a.js-add-attachment(title="{{_ 'add-attachment' }}")
|
2020-03-31 23:56:37 +03:00
|
|
|
i.fa.fa-plus
|
2022-03-27 23:58:41 +02:00
|
|
|
|
|
|
|
|
template(name="attachmentActionsPopup")
|
|
|
|
|
ul.pop-over-list
|
|
|
|
|
li
|
|
|
|
|
if isImage
|
|
|
|
|
a(class="{{#if isCover}}js-remove-cover{{else}}js-add-cover{{/if}}")
|
|
|
|
|
i.fa.fa-thumb-tack
|
|
|
|
|
if isCover
|
|
|
|
|
| {{_ 'remove-cover'}}
|
|
|
|
|
else
|
|
|
|
|
| {{_ 'add-cover'}}
|
|
|
|
|
if currentUser.isBoardAdmin
|
2022-04-24 17:12:31 +02:00
|
|
|
a.js-rename
|
|
|
|
|
i.fa.fa-pencil-square-o
|
|
|
|
|
| {{_ 'rename'}}
|
2022-03-27 23:58:41 +02:00
|
|
|
a.js-confirm-delete
|
|
|
|
|
i.fa.fa-close
|
|
|
|
|
| {{_ 'delete'}}
|
2022-03-25 14:08:37 +01:00
|
|
|
p.attachment-storage
|
|
|
|
|
| {{versions.original.storage}}
|
|
|
|
|
|
|
|
|
|
if $neq versions.original.storage "fs"
|
|
|
|
|
a.js-move-storage-fs
|
|
|
|
|
i.fa.fa-arrow-right
|
|
|
|
|
| {{_ 'attachment-move-storage-fs'}}
|
|
|
|
|
|
|
|
|
|
if $neq versions.original.storage "gridfs"
|
|
|
|
|
if versions.original.storage
|
|
|
|
|
a.js-move-storage-gridfs
|
|
|
|
|
i.fa.fa-arrow-right
|
|
|
|
|
| {{_ 'attachment-move-storage-gridfs'}}
|
2022-04-24 17:12:31 +02:00
|
|
|
|
|
|
|
|
template(name="attachmentRenamePopup")
|
2022-04-26 19:27:22 +02:00
|
|
|
input.js-edit-attachment-name(type='text' autofocus value="{{getNameWithoutExtension}}" dir="auto")
|
2022-04-24 17:12:31 +02:00
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-submit-edit-attachment-name(type="submit") {{_ 'save'}}
|