wallabag/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig

22 lines
1 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 %}
<span class="card-title dot-ellipsis dot-resize-update">
<a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title| striptags | e('html_attr') }}">
2017-12-20 20:02:56 +00:00
{{ entry.title | striptags | truncate(80, true, '…') | raw | default('config.form_rules.faq.variable_description.title'|trans) }}
2017-12-20 20:02:37 +00:00
</a>
</span>
<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 withTags %}
{% for tag in entry.tags | slice(0, 3) %}
<span class="chip hide-on-med-and-down">
<a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a>
</span>
{% endfor %}
{% endif %}
</div>
</div>