aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig
blob: f02dfba47d0b6ec43eba2ad148e596a9602ac3c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<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') }}">
            {{ entry.title | striptags | truncate(80, true, '…') | raw | default('config.form_rules.faq.variable_description.title'|trans) }}
        </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>