aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas@loeuillet.org>2017-12-26 16:00:58 +0100
committerGitHub <noreply@github.com>2017-12-26 16:00:58 +0100
commit3473e600b1d0ae0695b8c15342a6a1f76e2bc973 (patch)
treecb75c9e3ac7bccdffcad97c2aa637a6717bf25e4 /src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig
parent11ed735c09391f244dfa45b93cdbfded11196866 (diff)
parentc04bde29a36e4a60c596808d0ac45dc23476db44 (diff)
downloadwallabag-3473e600b1d0ae0695b8c15342a6a1f76e2bc973.tar.gz
wallabag-3473e600b1d0ae0695b8c15342a6a1f76e2bc973.tar.zst
wallabag-3473e600b1d0ae0695b8c15342a6a1f76e2bc973.zip
Merge pull request #3525 from Simounet/fix/empty-card-title-link
Fix empty card title link
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.twig15
1 files changed, 15 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..ab7295d5
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig
@@ -0,0 +1,15 @@
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 <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title| striptags | e('html_attr') }}" class="card-title dot-ellipsis dot-resize-update">
6 {{ entry.title | striptags | truncate(80, true, '…') | raw | default('entry.default_title'|trans) }}
7 </a>
8
9 <div class="{{ subClass|default('original grey-text') }}">
10 <a href="{{ entry.url|e }}" target="_blank" title="{{ entry.domainName|removeWww }}" class="tool grey-text">{{ entry.domainName|removeWww }}</a>
11 {% if withTags is defined %}
12 {% include "@WallabagCore/themes/material/Entry/_tags.html.twig" with {'tags': entry.tags | slice(0, 3), 'listClass': ' hide-on-med-and-down'} only %}
13 {% endif %}
14 </div>
15</div>