X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fcommon%2FEntry%2Fshare.html.twig;h=b9fcc005815da5687ebec7144185d9ed36319d97;hb=4c78612eb47b235bc75a90d0aa7df51d654be0c7;hp=36c49e0422d0a4866036ea5a974e909427aa8db6;hpb=c8d2dcdafe95c7986bb9fdaa7998417a014bf6fa;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..b9fcc005 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,46 +1,39 @@ + - {{ entry.title | raw }} - - + + {{ entry.title|e|raw }} + + + {% set picturePath = app.request.schemeAndHttpHost ~ asset('wallassets/themes/_global/img/logo-wallabag.svg') %} {% 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 }}