X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fcommon%2FEntry%2Fshare.html.twig;h=e1c7aad96ff1021ca2fd7fc7f8c6d77a3b89f9c8;hb=a22b8043b45b0a5c2859afff90d968300b437c93;hp=a0a0d3c36c2447140af57cefc09118e957d6294a;hpb=93a95c09bf7ab389de623f6cda01dfc295aa6b74;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 a0a0d3c3..e1c7aad9 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,48 +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 }}