diff options
Diffstat (limited to 'tpl/view.twig')
-rw-r--r-- | tpl/view.twig | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tpl/view.twig b/tpl/view.twig new file mode 100644 index 00000000..e999afa1 --- /dev/null +++ b/tpl/view.twig | |||
@@ -0,0 +1,40 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}{% trans "home" %}{% endblock %} | ||
3 | {% block content %} | ||
4 | <div id="article"> | ||
5 | <div class="tools"> | ||
6 | <ul class="tools"> | ||
7 | <li> | ||
8 | <li><a href="{{ referer }}" title="{% trans "back to home" %}" class="tool back"><span></span></a></li> | ||
9 | <a title="{% trans "toggle mark as read" %}" class="tool archive {% if entry.is_read == 0 %}archive-off{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span></span></a></li> | ||
10 | <li><a title="{% trans "toggle favorite" %}" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span></span></a></li> | ||
11 | <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span></span></a></li> | ||
12 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title}}%20{{ entry.url|e }}%20via%20@getpoche" target="_blank" class="tool twitter" title="{% trans "tweet" %}"><span></span></a></li>{% endif %} | ||
13 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|e }}&body={{ entry.url|e }} via @getpoche" class="tool email" title="{% trans "email" %}"><span></span></a></li>{% endif %} | ||
14 | </li> | ||
15 | </ul> | ||
16 | </div> | ||
17 | <header class="mbm"> | ||
18 | <h1>{{ entry.title|e }}</h1> | ||
19 | <div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></div> | ||
20 | </header> | ||
21 | <article> | ||
22 | {{ content | raw }} | ||
23 | <div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></div> | ||
24 | </article> | ||
25 | <div class="tools"> | ||
26 | <ul class="tools"> | ||
27 | <li> | ||
28 | <li><a href="{{ referer }}" title="{% trans "back to home" %}" class="tool back"><span></span></a></li> | ||
29 | <li><a href="#" title="{% trans "back to top" %}" class="tool top"><span></span></a></li> | ||
30 | <a title="{% trans "toggle mark as read" %}" class="tool archive {% if entry.is_read == 0 %}archive-off{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span></span></a></li> | ||
31 | <li><a title="{% trans "toggle favorite" %}" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span></span></a></li> | ||
32 | <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span></span></a></li> | ||
33 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title}}%20{{ entry.url|e }}%20via%20@getpoche" target="_blank" class="tool twitter" title="{% trans "tweet" %}"><span></span></a></li>{% endif %} | ||
34 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|e }}&body={{ entry.url|e }} via @getpoche" class="tool email" title="{% trans "email" %}"><span></span></a></li>{% endif %} | ||
35 | </li> | ||
36 | </ul> | ||
37 | <p>{% trans "this article appears wrong?" %} <a href="https://github.com/inthepoche/poche/issues/new">{% trans "create an issue" %}</a> {% trans "or" %} <a href="mailto:support@inthepoche.com?subject=Wrong display in poche&body={{ entry.url|e }}">{% trans "contact us by mail" %}</a></p> | ||
38 | </div> | ||
39 | </div> | ||
40 | {% endblock %} \ No newline at end of file | ||