aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2018-11-21 20:56:09 +0100
committerGitHub <noreply@github.com>2018-11-21 20:56:09 +0100
commite01b00298aca4d58e330e03e3c0f1f7a39884db7 (patch)
tree351a0f4ef3835e41e8173aaeedc5fd45c1022808 /src
parent59a31ed07f0933d90780696e18e1e7450ff15045 (diff)
parent2daae770942911428fba11af207e61e6460cff98 (diff)
downloadwallabag-e01b00298aca4d58e330e03e3c0f1f7a39884db7.tar.gz
wallabag-e01b00298aca4d58e330e03e3c0f1f7a39884db7.tar.zst
wallabag-e01b00298aca4d58e330e03e3c0f1f7a39884db7.zip
Merge pull request #3774 from Simounet/feature/card-ui
Card no preview replaced by wallabag logo
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig7
1 files changed, 2 insertions, 5 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 dee1f55b..581a1813 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,11 +7,8 @@
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 %} 10 {% set previewClassModifier = entry.previewPicture ? '' : ' preview--default' %}
11 <span class="preview placeholder" style="background-image: url({{ asset('wallassets/themes/_global/img/logo-square.svg') }});"></span> 11 <span class="preview{{ previewClassModifier }}" style="background-image: url({{ entry.previewPicture | default(asset('wallassets/themes/_global/img/logo-square.svg')) }})"></span>
12 {% else %}
13 <span class="preview" style="background-image: url({{ entry.previewPicture }})"></span>
14 {% endif %}
15 </a> 12 </a>
16 </div> 13 </div>
17 {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %} 14 {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %}