mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Set card attachment as background image. Part 2.
Thanks to xet7 ! Related #486
This commit is contained in:
parent
e892a6104a
commit
ed92db87bc
4 changed files with 49 additions and 7 deletions
|
|
@ -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'}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue