]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Updated baggy theme for the no-title fix
authorNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 26 Dec 2017 08:07:28 +0000 (09:07 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 26 Dec 2017 08:07:28 +0000 (09:07 +0100)
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig

index 12cead487af8f21aeff0e071abcff87a67942fec..27c8e8a2e3f9c552bbfc64a7da4b662cc6e28944 100644 (file)
@@ -38,7 +38,7 @@
 
     {% for entry in entries %}
         <div id="entry-{{ entry.id|e }}" class="{% if listMode == 0 %}entry{% else %}listmode entry{% endif %}">
-            <h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|e|raw }}">{{ entry.title|e|raw }}</a></h2>
+            <h2><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|e|raw }}">{{ entry.title | striptags | truncate(80, true, '…') | raw | default('entry.default_title'|trans) }}</a></h2>
 
             {% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
             <div class="estimatedTime">