diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-10 17:33:15 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-08-23 16:49:21 +0200 |
commit | f3d0cb91063840f2b05c63954d3fef3e5b8943fd (patch) | |
tree | 5ee9a0c73e7a3e4c8d6da1761a8ce23110f8125a /src/Wallabag/CoreBundle/Resources | |
parent | 1bee9e0760c89756ebab0b67f9ab7efc5c6a709b (diff) | |
download | wallabag-f3d0cb91063840f2b05c63954d3fef3e5b8943fd.tar.gz wallabag-f3d0cb91063840f2b05c63954d3fef3e5b8943fd.tar.zst wallabag-f3d0cb91063840f2b05c63954d3fef3e5b8943fd.zip |
Share entry with a public URL
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | 8 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/share.html.twig | 39 |
2 files changed, 46 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index 5dd2afb3..b634dd40 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | |||
@@ -101,6 +101,13 @@ | |||
101 | <ul> | 101 | <ul> |
102 | {% if craue_setting('share_twitter') %} | 102 | {% if craue_setting('share_twitter') %} |
103 | <li> | 103 | <li> |
104 | <a href="{{ path('share', {'uuid': entry.uuid }) }}" target="_blank" class="tool public" title="public"> | ||
105 | <span>public</span> | ||
106 | </a> | ||
107 | </li> | ||
108 | {% endif %} | ||
109 | {% if craue_setting('share_twitter') %} | ||
110 | <li> | ||
104 | <a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool twitter icon icon-twitter" title="twitter"> | 111 | <a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool twitter icon icon-twitter" title="twitter"> |
105 | <span>twitter</span> | 112 | <span>twitter</span> |
106 | </a> | 113 | </a> |
@@ -149,7 +156,6 @@ | |||
149 | </li> | 156 | </li> |
150 | {% endif %} | 157 | {% endif %} |
151 | 158 | ||
152 | |||
153 | <li class="bold"> | 159 | <li class="bold"> |
154 | <a class="waves-effect collapsible-header"> | 160 | <a class="waves-effect collapsible-header"> |
155 | <i class="material-icons small">file_download</i> | 161 | <i class="material-icons small">file_download</i> |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/share.html.twig new file mode 100644 index 00000000..37ca14f1 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/share.html.twig | |||
@@ -0,0 +1,39 @@ | |||
1 | <html> | ||
2 | <head> | ||
3 | <title>{{ entry.title | raw }}</title> | ||
4 | <style> | ||
5 | body { | ||
6 | margin: 10px; | ||
7 | font-family: 'Roboto',Verdana,Geneva,sans-serif; | ||
8 | font-size: 16px; | ||
9 | color: #000; | ||
10 | } | ||
11 | header { | ||
12 | text-align: center; | ||
13 | } | ||
14 | |||
15 | header h1 { | ||
16 | font-size: 1.3em; | ||
17 | } | ||
18 | |||
19 | a, | ||
20 | a:hover, | ||
21 | a:visited { | ||
22 | color: #000; | ||
23 | } | ||
24 | |||
25 | article { | ||
26 | margin: 0 auto; | ||
27 | width: 600px; | ||
28 | } | ||
29 | </style> | ||
30 | </head> | ||
31 | <body> | ||
32 | <header> | ||
33 | <h1>{{ entry.title | raw }}</h1> | ||
34 | </header> | ||
35 | <article> | ||
36 | {{ entry.content | raw }} | ||
37 | </article> | ||
38 | </body> | ||
39 | </html> | ||