diff options
author | Kevin Decherf <kevin@kdecherf.com> | 2018-11-25 15:00:08 +0100 |
---|---|---|
committer | Kevin Decherf <kevin@kdecherf.com> | 2018-11-25 15:00:08 +0100 |
commit | e5de9917fdd78d4cd3b46b376e3b2a4175efa36a (patch) | |
tree | 084cd32cecf07d3c4fb365730b5899d22fac0fc8 /src/Wallabag | |
parent | bffe65478de71113a16f6e7a7ef75845c9d61180 (diff) | |
download | wallabag-e5de9917fdd78d4cd3b46b376e3b2a4175efa36a.tar.gz wallabag-e5de9917fdd78d4cd3b46b376e3b2a4175efa36a.tar.zst wallabag-e5de9917fdd78d4cd3b46b376e3b2a4175efa36a.zip |
material: fix missing thumbnail on list view
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig index 7c83c3bb..1c00f2fa 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig | |||
@@ -1,10 +1,9 @@ | |||
1 | <div class="card-stacked"> | 1 | <div class="card-stacked"> |
2 | <div class="preview"> | 2 | <div class="card-preview"> |
3 | {% if entry.previewPicture is not null %} | 3 | <a href="{{ path('view', { 'id': entry.id }) }}"> |
4 | <a href="{{ path('view', { 'id': entry.id }) }}"> | 4 | {% set previewClassModifier = entry.previewPicture ? '' : ' preview--default' %} |
5 | <img src="{{ entry.previewPicture }}" /> | 5 | <span class="preview{{ previewClassModifier }}" style="background-image: url({{ entry.previewPicture | default(asset('wallassets/themes/_global/img/logo-square.svg')) }})"></span> |
6 | </a> | 6 | </a> |
7 | {% endif %} | ||
8 | </div> | 7 | </div> |
9 | {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withTags': true, 'subClass': 'metadata'} only %} | 8 | {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withTags': true, 'subClass': 'metadata'} only %} |
10 | <ul class="tools-list hide-on-small-only"> | 9 | <ul class="tools-list hide-on-small-only"> |