mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-10 09:19:28 +00:00
1d3935fbd3
As baggy theme was removed and material is the only remaining theme, we don't need a theme switched anymore. So: - move all `*.twig` files from the material theme folder to the root - remove useless translations
36 lines
1.7 KiB
Twig
36 lines
1.7 KiB
Twig
<div class="card entry-card{% if currentRoute in routes and entry.isArchived %} archived{% endif %}">
|
|
<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) %}
|
|
<li title="{{ tag.label }}"><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
<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>
|
|
</a>
|
|
</div>
|
|
{% include "@WallabagCore/Entry/Card/_content.html.twig" with {'entry': entry, 'withPreview': true} only %}
|
|
</div>
|
|
|
|
<div class="card-reveal">
|
|
<i class="card-title activator grey-text text-darken-4 material-icons right">clear</i>
|
|
<span class="card-title">
|
|
<a href="{{ path('view', {'id': entry.id}) }}" title="{{ entry.title|striptags|e('html_attr') }}">
|
|
{{ entry.title|striptags|truncate(80, true, '…')|raw }}
|
|
</a>
|
|
</span>
|
|
|
|
<p>{{ entry.content|striptags|slice(0, 250)|raw }}…</p>
|
|
|
|
<ul class="card-entry-labels-hidden">
|
|
{% for tag in entry.tags %}
|
|
<li title="{{ tag.label }}"><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
|
|
{% include "@WallabagCore/Entry/_card_actions.html.twig" with {'entry': entry} only %}
|
|
</div>
|