diff options
author | Simounet <contact@simounet.net> | 2017-12-20 21:02:37 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2017-12-26 08:55:23 +0100 |
commit | 3c9548257ccb92a13c658372fc09dccff117bb36 (patch) | |
tree | 2419b1274374bcb0cefc5d88a79ed768a504bb41 /src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig | |
parent | 726e2cf3c648dc9536eea7ed1add298fc701211a (diff) | |
download | wallabag-3c9548257ccb92a13c658372fc09dccff117bb36.tar.gz wallabag-3c9548257ccb92a13c658372fc09dccff117bb36.tar.zst wallabag-3c9548257ccb92a13c658372fc09dccff117bb36.zip |
Content card template shared
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig new file mode 100644 index 00000000..4836a4ea --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig | |||
@@ -0,0 +1,21 @@ | |||
1 | <div class="card-content"> | ||
2 | {% if withPreview is defined %} | ||
3 | <i class="grey-text text-darken-4 activator material-icons right">more_vert</i> | ||
4 | {% endif %} | ||
5 | <span class="card-title dot-ellipsis dot-resize-update"> | ||
6 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title| striptags | e('html_attr') }}"> | ||
7 | {{ entry.title | striptags | truncate(80, true, '…') | raw }} | ||
8 | </a> | ||
9 | </span> | ||
10 | |||
11 | <div class="{{ subClass|default('original grey-text') }}"> | ||
12 | <a href="{{ entry.url|e }}" target="_blank" title="{{ entry.domainName|removeWww }}" class="tool grey-text">{{ entry.domainName|removeWww }}</a> | ||
13 | {% if withTags %} | ||
14 | {% for tag in entry.tags | slice(0, 3) %} | ||
15 | <span class="chip hide-on-med-and-down"> | ||
16 | <a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a> | ||
17 | </span> | ||
18 | {% endfor %} | ||
19 | {% endif %} | ||
20 | </div> | ||
21 | </div> | ||