]>
Commit | Line | Data |
---|---|---|
8d7b4f0e JB |
1 | <div class="card"> |
2 | <div class="card-body"> | |
3 | <div class="card-image waves-effect waves-block waves-light"> | |
4 | <ul class="card-entry-labels"> | |
5 | {% for tag in entry.tags | slice(0, 3) %} | |
6 | <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li> | |
7 | {% endfor %} | |
8 | </ul> | |
9 | <div class="preview activator" style="background-image: url({{ entry.previewPicture }})"></div> | |
10 | </div> | |
11 | ||
12 | <div class="card-content"> | |
13 | <i class="grey-text text-darken-4 activator material-icons right">more_vert</i> | |
14 | ||
15 | <span class="card-title dot-ellipsis dot-resize-update"> | |
1bb7bdc8 KD |
16 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}"> |
17 | {{ entry.title | striptags | truncate(80, true, '…') | raw }} | |
8d7b4f0e JB |
18 | </a> |
19 | </span> | |
20 | ||
21 | <div class="original grey-text"> | |
22 | <a href="{{ entry.url|e }}" target="_blank" title="{{ entry.domainName|removeWww }}" class="tool original grey-text"> | |
23 | <span>{{ entry.domainName|removeWww }}</span> | |
24 | </a> | |
25 | </div> | |
26 | </div> | |
27 | </div> | |
28 | ||
29 | <div class="card-reveal"> | |
30 | <i class="card-title activator grey-text text-darken-4 material-icons right">clear</i> | |
31 | <span class="card-title"> | |
1bb7bdc8 KD |
32 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}"> |
33 | {{ entry.title | striptags | truncate(80, true, '…') | raw }} | |
8d7b4f0e JB |
34 | </a> |
35 | </span> | |
36 | ||
37 | <p>{{ entry.content|striptags|slice(0, 250)|raw }}…</p> | |
38 | ||
39 | <ul class="card-entry-labels-hidden"> | |
40 | {% for tag in entry.tags %} | |
41 | <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li> | |
42 | {% endfor %} | |
43 | </ul> | |
44 | </div> | |
45 | ||
46 | {% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %} | |
47 | </div> |