X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fcommon%2FEntry%2Fshare.html.twig;h=2e8fe65c64bc6be83f30cf7498e9fde5eeb3b325;hb=77255d668828d7ae4cceb186b5215a0d4ddd69f6;hp=b50226ef16e5166d536fcfe49d60cf8a14707ff3;hpb=020c723e2865dbf61cca9fb14199ce07f479865a;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 b50226ef..2e8fe65c 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,13 +12,23 @@ - + + + {% if not app.debug %} + + {% 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 }}