]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove preview picture from single entry view page for #1875 3765/head
authorMatt Burke <burkemw3@gmail.com>
Sat, 3 Nov 2018 16:56:49 +0000 (12:56 -0400)
committerMatt Burke <burkemw3@gmail.com>
Sun, 25 Nov 2018 00:29:58 +0000 (19:29 -0500)
Showing the preview picture usually leads to showing a duplicate
image, and frequently leads to showing duplicate images directly
adjacent to each other.

src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig

index d42739ac2c14ffa8e46a5e6dcf6b9083bf78a773..32d95a3170dbd5f1023d816e337aaa2e878775ec 100644 (file)
@@ -96,9 +96,6 @@
                 </div>
             </aside>
         </div>
-        {% if entry.previewPicture is not null %}
-            <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|e|raw }}" /></div>
-        {% endif %}
         <article>
             {{ entry.content | raw }}
         </article>
index 7484d53be3d9bed1f202762f9205baa891e0268c..b7b62f6cfeaa0d80ca8a975653802e87487c125e 100644 (file)
                 {{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }}
             </div>
 
-            {% if entry.previewPicture is not null %}
-                <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}" /></div>
-            {% endif %}
-
         </aside>
         <article>
             {{ entry.content | raw }}