2021-08-03 09:09:38 +00:00
|
|
|
<div class="card{% if currentRoute in routes and entry.isArchived %} archived{% endif %}">
|
2016-11-08 21:17:46 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="card-image waves-effect waves-block waves-light">
|
|
|
|
<ul class="card-entry-labels">
|
|
|
|
{% for tag in entry.tags | slice(0, 3) %}
|
2020-12-31 01:47:56 +00:00
|
|
|
<li title="{{ tag.label }}"><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
2016-11-08 21:17:46 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2017-11-05 14:18:45 +00:00
|
|
|
<a href="{{ path('view', { 'id': entry.id }) }}">
|
2018-07-11 21:57:01 +00:00
|
|
|
{% set previewClassModifier = entry.previewPicture ? '' : ' preview--default' %}
|
2020-11-27 09:51:31 +00:00
|
|
|
<span class="preview{{ previewClassModifier }}" style="background-image: url({{ entry.previewPicture | default(asset('img/logo-square.svg')) }})"></span>
|
2017-11-05 14:18:45 +00:00
|
|
|
</a>
|
2016-11-08 21:17:46 +00:00
|
|
|
</div>
|
2017-12-20 20:02:37 +00:00
|
|
|
{% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %}
|
2016-11-08 21:17:46 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-reveal">
|
|
|
|
<i class="card-title activator grey-text text-darken-4 material-icons right">clear</i>
|
|
|
|
<span class="card-title">
|
2017-02-01 22:39:34 +00:00
|
|
|
<a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}">
|
|
|
|
{{ entry.title | striptags | truncate(80, true, '…') | raw }}
|
2016-11-08 21:17:46 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<p>{{ entry.content|striptags|slice(0, 250)|raw }}…</p>
|
|
|
|
|
|
|
|
<ul class="card-entry-labels-hidden">
|
|
|
|
{% for tag in entry.tags %}
|
2020-12-31 01:47:56 +00:00
|
|
|
<li title="{{ tag.label }}"><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
2016-11-08 21:17:46 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %}
|
|
|
|
</div>
|