diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig new file mode 100644 index 00000000..b0e3c06d --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | |||
@@ -0,0 +1,47 @@ | |||
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"> | ||
16 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | raw | striptags }}"> | ||
17 | {{ entry.title| striptags | truncate(80, true, '…') | raw }} | ||
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"> | ||
32 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | raw | striptags }}"> | ||
33 | {{ entry.title | raw | striptags | truncate(80, true, '…') }} | ||
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> | ||