From 8c6df7f20c946163b447227ff2f0d4da681cffb2 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 3 Jun 2023 09:43:27 -0400 Subject: [PATCH] Set card attachment as background image. In Progress. Thanks to xet7 ! Related #486 --- client/components/cards/attachments.jade | 7 +++++++ imports/i18n/data/en.i18n.json | 2 ++ 2 files changed, 9 insertions(+) diff --git a/client/components/cards/attachments.jade b/client/components/cards/attachments.jade index 574704a2d..a1319c9d0 100644 --- a/client/components/cards/attachments.jade +++ b/client/components/cards/attachments.jade @@ -81,6 +81,13 @@ template(name="attachmentActionsPopup") | {{_ 'remove-cover'}} else | {{_ 'add-cover'}} + if isImage + a(class="{{#if isBackgroundImage}}js-remove-background-image{{else}}js-add-background-image{{/if}}") + i.fa.fa-picture-o + if isBackgroundImage + | {{_ 'remove-background-image'}} + else + | {{_ 'add-background-image'}} if currentUser.isBoardAdmin a.js-rename i.fa.fa-pencil-square-o diff --git a/imports/i18n/data/en.i18n.json b/imports/i18n/data/en.i18n.json index aae462ffe..f6c74e490 100644 --- a/imports/i18n/data/en.i18n.json +++ b/imports/i18n/data/en.i18n.json @@ -140,6 +140,8 @@ "board-change-color": "Change color", "board-change-background-image": "Change Background Image", "board-background-image-url": "Background Image URL", + "add-background-image": "Add Background Image", + "remove-background-image": "Remove Background Image", "show-at-all-boards-page" : "Show at All Boards page", "board-info-on-my-boards" : "All Boards Settings", "boardInfoOnMyBoardsPopup-title" : "All Boards Settings",