]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove preview picture from share view page for #1875 3922/head
authorMatt Burke <burkemw3@gmail.com>
Thu, 18 Apr 2019 02:21:17 +0000 (22:21 -0400)
committerMatt Burke <burkemw3@gmail.com>
Sun, 12 May 2019 16:32:22 +0000 (12:32 -0400)
Essentially, same as commit 038fccd for single entry views. From that commit:
> 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/common/Entry/share.html.twig

index e1c7aad96ff1021ca2fd7fc7f8c6d77a3b89f9c8..4294a60d9f22d245e4de794361eb6e669e7a13de 100644 (file)
@@ -29,9 +29,6 @@
             <h1>{{ entry.title|e|raw }}</h1>
             <a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a>
             <p class="shared-by">{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</p>
-            {% if entry.previewPicture is not null %}
-                <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" />
-            {% endif %}
         </header>
         <article class="block">
             {{ entry.content | raw }}