From 8d7b4f0eff9d07f8d6d354e09fd926abf26aa4ce Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Tue, 8 Nov 2016 22:17:46 +0100 Subject: Display a bigger image in case of image content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the content is only an image, we can display a bigger preview image because we won’t have text to display. Also, split different card view to avoid too much complexity in the entries.html.twig --- .../views/themes/material/Entry/_card_actions.html.twig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig new file mode 100644 index 00000000..9f696d06 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig @@ -0,0 +1,14 @@ +
+ + timer + {{ entry.readingTime / app.user.config.readingSpeed|round }} min + + + +
-- cgit v1.2.3 From 1c282b1da0491cda620e03ab92c00341aa80e18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 10 Nov 2016 19:24:00 +0100 Subject: Added creation date on entries view --- .../Resources/views/themes/material/Entry/_card_actions.html.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig index 9f696d06..4a93fd8e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig @@ -1,7 +1,10 @@
timer - {{ entry.readingTime / app.user.config.readingSpeed|round }} min + {{ entry.readingTime / app.user.config.readingSpeed|round }} min  + + today +  {{ entry.createdAt|date('Y-m-d') }}
    -- cgit v1.2.3 From a8c6f29f3ee51ccfcce2e24ec352d9d48a34fc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 14 Nov 2016 14:28:42 +0100 Subject: Hide creation date in mobile view --- .../Resources/views/themes/material/Entry/_card_actions.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig index 4a93fd8e..56442116 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_actions.html.twig @@ -3,8 +3,8 @@ timer {{ entry.readingTime / app.user.config.readingSpeed|round }} min  - today -  {{ entry.createdAt|date('Y-m-d') }} + today +  {{ entry.createdAt|date('Y-m-d') }}
      -- cgit v1.2.3