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 000000000..4836a4ea3 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig @@ -0,0 +1,21 @@ +
+ {% if withPreview is defined %} + more_vert + {% endif %} + + + {{ entry.title | striptags | truncate(80, true, '…') | raw }} + + + +
+ {{ entry.domainName|removeWww }} + {% if withTags %} + {% for tag in entry.tags | slice(0, 3) %} + + {{ tag.label }} + + {% endfor %} + {% endif %} +
+
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig index a4958b581..ceb953819 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig @@ -10,20 +10,7 @@ - -
- - - {{ entry.title | striptags | truncate(80, true, '…') | raw }} - - - -
- - {{ entry.domainName|removeWww }} - -
-
+ {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry} only %} {% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig index 08f5b0e26..7c83c3bba 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig @@ -6,24 +6,7 @@ {% endif %} -
- - - {{ entry.title| striptags | truncate(120, true, '…') | raw }} - - - -
- - {{ entry.domainName|removeWww }} - - {% for tag in entry.tags | slice(0, 3) %} - - {{ tag.label }} - - {% endfor %} -
-
+ {% include "@WallabagCore/themes/material/Entry/Card/_content.html.twig" with {'entry': entry, 'withTags': true, 'subClass': 'metadata'} only %}