2022-03-15 12:54:04 +00:00
|
|
|
<div class="card entry-card{% if currentRoute in routes and entry.isArchived %} archived{% endif %}">
|
2024-02-18 23:03:14 +00:00
|
|
|
{% include "Entry/Card/_mass_checkbox.html.twig" with {'entry': entry} only %}
|
2016-11-08 21:17:46 +00:00
|
|
|
<div class="card-body">
|
2023-06-13 13:02:48 +00:00
|
|
|
<div class="{% if app.user.config.displayThumbnails %}card-image{% endif %} waves-effect waves-block waves-light">
|
2016-11-08 21:17:46 +00:00
|
|
|
<ul class="card-entry-labels">
|
2022-05-03 21:28:20 +00:00
|
|
|
{% 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>
|
2023-06-13 13:02:48 +00:00
|
|
|
{% if app.user.config.displayThumbnails %}
|
2022-05-03 21:28:20 +00:00
|
|
|
<a href="{{ path('view', {'id': entry.id}) }}">
|
|
|
|
{% set preview_class_modifier = entry.previewPicture ? '' : ' preview--default' %}
|
|
|
|
<span class="preview{{ preview_class_modifier }}" style="background-image: url({{ entry.previewPicture|default(asset('img/logo-square.svg')) }})"></span>
|
2017-11-05 14:18:45 +00:00
|
|
|
</a>
|
2023-06-13 13:02:48 +00:00
|
|
|
{% endif %}
|
2016-11-08 21:17:46 +00:00
|
|
|
</div>
|
2024-02-18 23:03:14 +00:00
|
|
|
{% include "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">
|
2022-05-03 21:28:20 +00:00
|
|
|
<a href="{{ path('view', {'id': entry.id}) }}" title="{{ entry.title|striptags|e('html_attr') }}">
|
2022-12-15 11:32:16 +00:00
|
|
|
{{ entry.title|striptags|u.truncate(80, '…', false)|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>
|
|
|
|
|
2024-02-18 23:03:14 +00:00
|
|
|
{% include "Entry/_card_actions.html.twig" with {'entry': entry} only %}
|
2016-11-08 21:17:46 +00:00
|
|
|
</div>
|