]>
Commit | Line | Data |
---|---|---|
8d7b4f0e JB |
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> | |
2f510787 | 9 | <a href="{{ path('view', { 'id': entry.id }) }}"> |
cefbe6a8 MB |
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 %} | |
2f510787 | 13 | <span class="preview" style="background-image: url({{ entry.previewPicture }})"></span> |
cefbe6a8 | 14 | {% endif %} |
2f510787 | 15 | </a> |
8d7b4f0e | 16 | </div> |
3c954825 | 17 | {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %} |
8d7b4f0e JB |
18 | </div> |
19 | ||
20 | <div class="card-reveal"> | |
21 | <i class="card-title activator grey-text text-darken-4 material-icons right">clear</i> | |
22 | <span class="card-title"> | |
1bb7bdc8 KD |
23 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}"> |
24 | {{ entry.title | striptags | truncate(80, true, '…') | raw }} | |
8d7b4f0e JB |
25 | </a> |
26 | </span> | |
27 | ||
28 | <p>{{ entry.content|striptags|slice(0, 250)|raw }}…</p> | |
29 | ||
30 | <ul class="card-entry-labels-hidden"> | |
31 | {% for tag in entry.tags %} | |
32 | <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li> | |
33 | {% endfor %} | |
34 | </ul> | |
35 | </div> | |
36 | ||
37 | {% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %} | |
38 | </div> |