aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas@loeuillet.org>2016-11-28 11:26:08 +0100
committerNicolas Lœuillet <nicolas@loeuillet.org>2016-11-28 14:27:58 +0100
commit56a7ce17f3a9a22e0bfc8651cb690a14447e0afd (patch)
treea65bc6015e1226c9fec33a27c456cf9cf9f6ed5f /src/Wallabag
parent8f3ff39ca364a28163fb9ced0eb3291e0c1caeaf (diff)
downloadwallabag-56a7ce17f3a9a22e0bfc8651cb690a14447e0afd.tar.gz
wallabag-56a7ce17f3a9a22e0bfc8651cb690a14447e0afd.tar.zst
wallabag-56a7ce17f3a9a22e0bfc8651cb690a14447e0afd.zip
Hide article text on mobile with list mode
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
index 3df990a3..33863920 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
@@ -58,7 +58,7 @@
58 <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li> 58 <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
59 {% endfor %} 59 {% endfor %}
60 </ul> 60 </ul>
61 <p>{{ entry.content|striptags|slice(0, 300) }}&hellip;</p> 61 <p {% if viewMode == 1 %}class="hide"{% endif %}>{{ entry.content|striptags|slice(0, 300) }}&hellip;</p>
62 {% else %} 62 {% else %}
63 <ul class="card-entry-labels"> 63 <ul class="card-entry-labels">
64 {% for tag in entry.tags | slice(0, 3) %} 64 {% for tag in entry.tags | slice(0, 3) %}
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 3d971f0b..b77cdc14 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,7 +6,7 @@
6 {{ entry.title| striptags | truncate(120, true, '…') | raw }} 6 {{ entry.title| striptags | truncate(120, true, '…') | raw }}
7 </a> 7 </a>
8 </span> 8 </span>
9 <p>{{ entry.content|striptags|slice(0, 500)|raw }}&hellip;</p> 9 <p class="hide-on-med-and-down">{{ entry.content|striptags|slice(0, 500)|raw }}&hellip;</p>
10 </div> 10 </div>
11 11
12 {% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %} 12 {% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %}