mirror of
https://github.com/wekan/wekan.git
synced 2026-03-08 06:32:34 +01:00
fixup! fix: cover image - works now
This commit is contained in:
parent
1691a529d1
commit
d58800d67a
2 changed files with 5 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ template(name="minicard")
|
||||||
.handle
|
.handle
|
||||||
.fa.fa-arrows
|
.fa.fa-arrows
|
||||||
if cover
|
if cover
|
||||||
.minicard-cover(style="background-image: url('{{cover.link}}');")
|
.minicard-cover(style="background-image: url('{{cover.link 'original' '/'}}');")
|
||||||
if labels
|
if labels
|
||||||
.minicard-labels
|
.minicard-labels
|
||||||
each labels
|
each labels
|
||||||
|
|
|
||||||
|
|
@ -535,7 +535,10 @@ Cards.helpers({
|
||||||
|
|
||||||
cover() {
|
cover() {
|
||||||
if (!this.coverId) return false;
|
if (!this.coverId) return false;
|
||||||
return Attachments.findOne(this.coverId);
|
const cover = Attachments.findOne(this.coverId);
|
||||||
|
// if we return a cover before it is fully stored, we will get errors when we try to display it
|
||||||
|
// todo XXX we could return a default "upload pending" image in the meantime?
|
||||||
|
return cover && cover.path && cover;
|
||||||
},
|
},
|
||||||
|
|
||||||
checklists() {
|
checklists() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue