diff --git a/src/components/card/AttachmentList.vue b/src/components/card/AttachmentList.vue new file mode 100644 index 000000000..d7c972722 --- /dev/null +++ b/src/components/card/AttachmentList.vue @@ -0,0 +1,187 @@ + + + + + + + + + + + {{ attachment.data }} + + {{ formattedFileSize(attachment.extendedData.filesize) }} + {{ relativeDate(attachment.createdAt*1000) }} + {{ attachment.createdBy }} + + + + + {{ t('deck', 'Add this attachment') }} + + + + + + + + + + diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 6485581a6..eef4cef20 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -127,6 +127,11 @@ href="https://deck.readthedocs.io/en/latest/Markdown/" target="_blank" class="icon icon-info" /> + + + {{ t('deck', 'Add Attachment') }} + + {{ t('deck', 'Edit description') }} @@ -170,11 +175,22 @@ icon="icon-activity"> + + + {{ t('deck', 'Choose attachment') }} + + + +