X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fcommon%2FEntry%2Fshare.html.twig;h=a67807f982d684f3c768a7c3a06bfd5ab4d5f489;hb=1953a872932a63792293b4aec087880265ba89f7;hp=804adb36283a643c799c6cb9b9106f6dd6990856;hpb=bccf7a70bc22171904a5bb82d282e9c956684abc;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig index 804adb36..a67807f9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig @@ -1,33 +1,7 @@ - {{ entry.title | raw }} - - + {{ entry.title|e|raw }} + {% set picturePath = app.request.schemeAndHttpHost ~ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') %} @@ -38,14 +12,24 @@ - - + + + {% if app.debug %} + + {% else %} + + {% endif %} +
-

{{ entry.title | raw }}

-
{{ entry.domainName|removeWww }}
-
{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage')})|raw }}
+

{{ entry.title|e|raw }}

+
{{ entry.domainName|removeWww }}
+
{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.
+ + {% if entry.previewPicture is not null %} +
{{ entry.title|striptags|e('html_attr') }}
+ {% endif %}
{{ entry.content | raw }}