]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig
Card no preview replaced by wallabag logo
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / _card_preview.html.twig
1 <div class="card">
2 <div class="card-body">
3 <div class="card-image waves-effect waves-block waves-light">
4 <ul class="card-entry-labels">
5 {% for tag in entry.tags | slice(0, 3) %}
6 <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
7 {% endfor %}
8 </ul>
9 <a href="{{ path('view', { 'id': entry.id }) }}">
10 {% set previewClassModifier = entry.previewPicture ? '' : ' preview--default' %}
11 <span class="preview{{ previewClassModifier }}" style="background-image: url({{ entry.previewPicture | default(asset('wallassets/themes/_global/img/logo-square.svg')) }})"></span>
12 </a>
13 </div>
14 {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %}
15 </div>
16
17 <div class="card-reveal">
18 <i class="card-title activator grey-text text-darken-4 material-icons right">clear</i>
19 <span class="card-title">
20 <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}">
21 {{ entry.title | striptags | truncate(80, true, '…') | raw }}
22 </a>
23 </span>
24
25 <p>{{ entry.content|striptags|slice(0, 250)|raw }}&hellip;</p>
26
27 <ul class="card-entry-labels-hidden">
28 {% for tag in entry.tags %}
29 <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
30 {% endfor %}
31 </ul>
32 </div>
33
34 {% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %}
35 </div>