diff options
author | Simounet <contact@simounet.net> | 2017-12-02 18:43:32 +0100 |
---|---|---|
committer | Simounet <contact@simounet.net> | 2017-12-03 14:38:46 +0100 |
commit | 970e1075245f40792e01131f934dfdb803dd77ca (patch) | |
tree | 73368682aed4f5dfc0be53127cf23fb1ce3dfe99 /src | |
parent | 1d91f14516e109978f497e9f55d2f87c8268e1d7 (diff) | |
download | wallabag-970e1075245f40792e01131f934dfdb803dd77ca.tar.gz wallabag-970e1075245f40792e01131f934dfdb803dd77ca.tar.zst wallabag-970e1075245f40792e01131f934dfdb803dd77ca.zip |
Share page improved (mobile + header's padding)
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig | 14 |
1 files changed, 8 insertions, 6 deletions
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 955420ba..9b0503d6 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,6 +1,9 @@ | |||
1 | <!DOCTYPE html> | ||
1 | <html> | 2 | <html> |
2 | <head> | 3 | <head> |
4 | <meta charset="utf-8"> | ||
3 | <title>{{ entry.title|e|raw }}</title> | 5 | <title>{{ entry.title|e|raw }}</title> |
6 | <meta name="viewport" content="initial-scale=1.0"> | ||
4 | <meta property="og:title" content="{{ entry.title|e|raw }}" /> | 7 | <meta property="og:title" content="{{ entry.title|e|raw }}" /> |
5 | <meta property="og:type" content="article" /> | 8 | <meta property="og:type" content="article" /> |
6 | <meta property="og:url" content="{{ app.request.uri }}" /> | 9 | <meta property="og:url" content="{{ app.request.uri }}" /> |
@@ -22,16 +25,15 @@ | |||
22 | 25 | ||
23 | </head> | 26 | </head> |
24 | <body> | 27 | <body> |
25 | <header> | 28 | <header class="block"> |
26 | <h1>{{ entry.title|e|raw }}</h1> | 29 | <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> | 30 | <a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a> |
28 | <div>{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</div> | 31 | <p class="shared-by">{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</p> |
29 | |||
30 | {% if entry.previewPicture is not null %} | 32 | {% if entry.previewPicture is not null %} |
31 | <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /></div> | 33 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /> |
32 | {% endif %} | 34 | {% endif %} |
33 | </header> | 35 | </header> |
34 | <article> | 36 | <article class="block"> |
35 | {{ entry.content | raw }} | 37 | {{ entry.content | raw }} |
36 | </article> | 38 | </article> |
37 | </body> | 39 | </body> |