wallabag/templates/Entry/Card/_content.html.twig

23 lines
1.2 KiB
Twig
Raw Normal View History

2017-12-20 20:02:37 +00:00
<div class="card-content">
{% if withPreview is defined %}
<i class="grey-text text-darken-4 activator material-icons right">more_vert</i>
{% endif %}
2024-03-23 14:34:02 +00:00
{% if is_granted('VIEW', entry) %}
<a href="{{ path('view', {'id': entry.id}) }}" title="{{ entry.title|striptags|e('html_attr') }}" class="card-title dot-ellipsis dot-resize-update">
{{ entry.title|striptags|u.truncate(80, '…', false)|default('entry.default_title'|trans)|raw }}
</a>
{% else %}
2022-12-15 11:32:16 +00:00
{{ entry.title|striptags|u.truncate(80, '…', false)|default('entry.default_title'|trans)|raw }}
2024-03-23 14:34:02 +00:00
{% endif %}
2017-12-20 20:02:37 +00:00
<div class="{{ subClass|default('original grey-text') }}">
<a href="{{ entry.url|e }}" target="_blank" title="{{ entry.domainName|removeWww }}" class="tool grey-text">{{ entry.domainName|removeWww }}</a>
{% if withMetadata is defined %}
2024-02-18 23:03:14 +00:00
{% include "Entry/_tags.html.twig" with {'tags': entry.tags|slice(0, 3), 'entryId': entry.id, 'listClass': ' hide-on-med-and-down'} only %}
<div class="reading-time grey-text">
2024-02-18 23:03:14 +00:00
<div class="card-reading-time">{% include "Entry/_reading_time.html.twig" with {'entry': entry} only %}</div>
</div>
2017-12-20 20:02:37 +00:00
{% endif %}
</div>
</div>