diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2018-10-16 07:45:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 07:45:22 +0000 |
commit | 0658ce4f111c888f64464cfaa2a8ed392bae0a6e (patch) | |
tree | 5070d298f9c975e91713652e9a1590cfe34fa6eb /src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | |
parent | fbdc665487bc5ea9fd46502be06a13ebc3e2fb4f (diff) | |
parent | cefbe6a87fee244840e088955aa787a7ad3abb3e (diff) | |
download | wallabag-0658ce4f111c888f64464cfaa2a8ed392bae0a6e.tar.gz wallabag-0658ce4f111c888f64464cfaa2a8ed392bae0a6e.tar.zst wallabag-0658ce4f111c888f64464cfaa2a8ed392bae0a6e.zip |
Merge pull request #3745 from burkemw3/patch-3
Add placeholder image to card-based gallery entries page
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig index e93646dc..dee1f55b 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | |||
@@ -7,7 +7,11 @@ | |||
7 | {% endfor %} | 7 | {% endfor %} |
8 | </ul> | 8 | </ul> |
9 | <a href="{{ path('view', { 'id': entry.id }) }}"> | 9 | <a href="{{ path('view', { 'id': entry.id }) }}"> |
10 | {% if entry.previewPicture is null %} | ||
11 | <span class="preview placeholder" style="background-image: url({{ asset('wallassets/themes/_global/img/logo-square.svg') }});"></span> | ||
12 | {% else %} | ||
10 | <span class="preview" style="background-image: url({{ entry.previewPicture }})"></span> | 13 | <span class="preview" style="background-image: url({{ entry.previewPicture }})"></span> |
14 | {% endif %} | ||
11 | </a> | 15 | </a> |
12 | </div> | 16 | </div> |
13 | {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %} | 17 | {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %} |