Set card attachment as background image. Part 2.

Thanks to xet7 !

Related #486
This commit is contained in:
Lauri Ojansivu 2023-06-03 12:43:10 -04:00
parent e892a6104a
commit ed92db87bc
4 changed files with 49 additions and 7 deletions

View file

@ -81,14 +81,14 @@ 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
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'}}
a.js-rename
i.fa.fa-pencil-square-o
| {{_ 'rename'}}