X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fcommon%2FEntry%2Fshare.html.twig;h=955420ba41c8de4034f1318d9267479efd1acdae;hb=9ff628ca5612f378ddcf5faead065ed3415a6fac;hp=36c49e0422d0a4866036ea5a974e909427aa8db6;hpb=aa88d2494b1f574afcb5ab9caf098d8f0253ec33;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 36c49e04..955420ba 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,44 +1,35 @@ - {{ entry.title | raw }} - - + {{ entry.title|e|raw }} + + {% set picturePath = app.request.schemeAndHttpHost ~ asset('wallassets/themes/_global/img/logo-other_themes.png') %} {% if entry.previewPicture is not null %} - + {% set picturePath = entry.previewPicture %} {% endif %} + + + + + + + {% 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 }}