]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig
webpack & views: replace bundles/wallabagcore with wallassets
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / common / Entry / share.html.twig
CommitLineData
f3d0cb91
NL
1<html>
2 <head>
3d995079 3 <title>{{ entry.title|e|raw }}</title>
3d995079 4 <meta property="og:title" content="{{ entry.title|e|raw }}" />
f0d52417
NL
5 <meta property="og:type" content="article" />
6 <meta property="og:url" content="{{ app.request.uri }}" />
9ff628ca 7 {% set picturePath = app.request.schemeAndHttpHost ~ asset('wallassets/themes/_global/img/logo-other_themes.png') %}
f0d52417 8 {% if entry.previewPicture is not null %}
020c723e 9 {% set picturePath = entry.previewPicture %}
f0d52417 10 {% endif %}
020c723e
NL
11 <meta property="og:image" content="{{ picturePath }}" />
12 <meta name="twitter:card" content="summary" />
13 <meta name="twitter:image" content="{{ picturePath }}" />
14 <meta name="twitter:site" content="@wallabagapp" />
3d995079 15 <meta name="twitter:title" content="{{ entry.title|e|raw }}" />
b64d8f2c 16 <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
151f45db 17 {% if app.debug %}
9ff628ca 18 <script src="{{ asset('wallassets/public.dev.js') }}"></script>
151f45db 19 {% else %}
9ff628ca 20 <link rel="stylesheet" href="{{ asset('wallassets/public.css') }}">
77255d66
TC
21 {% endif %}
22
f3d0cb91
NL
23 </head>
24 <body>
25 <header>
3d995079
NL
26 <h1>{{ entry.title|e|raw }}</h1>
27 <div><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a></div>
77c5140b
JB
28 <div>{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</div>
29
30 {% if entry.previewPicture is not null %}
31 <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /></div>
32 {% endif %}
f3d0cb91
NL
33 </header>
34 <article>
35 {{ entry.content | raw }}
36 </article>
37 </body>
38</html>