aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/view.twig
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/view.twig')
-rw-r--r--tpl/view.twig26
1 files changed, 12 insertions, 14 deletions
diff --git a/tpl/view.twig b/tpl/view.twig
index bf9a9af9..692f9555 100644
--- a/tpl/view.twig
+++ b/tpl/view.twig
@@ -1,42 +1,40 @@
1{% extends "layout.twig" %} 1{% extends "layout.twig" %}
2{% block title %}{% trans "home" %}{% endblock %} 2{% block title %}{% trans "home" %}{% endblock %}
3 3{% block messages %}
4{% include '_messages.twig' %}
5{% endblock %}
4{% block content %} 6{% block content %}
5 <div id="article" class="w600p"> 7 <div id="article" class="w600p">
6 <div class="backhome">
7 <a href="./" title="{% trans "back to home" %}">&larr;</a>
8 </div>
9 <div class="tools"> 8 <div class="tools">
10 <ul> 9 <ul>
11 {% 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"><span></span></a></li>{% endif %} 10 <li><a href="./" title="{% trans "back to home" %}" class="tool">&larr;</a></li>
12 <li><a title="{% trans "toggle mark as read" %}" class="tool archive {% if entry.is_read == 0 %}archive-off{% endif %}" onclick="toggle_archive(this, {{ entry.id|e }})"><span></span></a></li> 11 <li><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>
13 <li><a href="#" id="themeswitch">{% trans "dark" %}</a></li> 12 <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>
14 <li><a title="{% trans "toggle favorite" %}" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" onclick="toggle_favorite(this, {{ entry.id|e }})"><span></span></a></li>
15 <li><form method="post" style="display: inline;" action="index.php"><input type="hidden" name="token" id="token" value="{{ token }}" /><input type="hidden" id="view" name="view" value="index" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{{ entry.id|e }}" /><input type="submit" class="delete" title="{% trans "toggle delete" %}" /></form></li> 13 <li><form method="post" style="display: inline;" action="index.php"><input type="hidden" name="token" id="token" value="{{ token }}" /><input type="hidden" id="view" name="view" value="index" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{{ entry.id|e }}" /><input type="submit" class="delete" title="{% trans "toggle delete" %}" /></form></li>
16 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li> 14 {% 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"><span></span></a></li>{% endif %}
15 {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|e }}&body={{ entry.url|e }} via @getpoche" class="tool email"><span></span></a></li>{% endif %}
17 </ul> 16 </ul>
18 </div> 17 </div>
19 <header class="mbm"> 18 <header class="mbm">
20 <h1><a href="{{ entry.url|e }}">{{ entry.title|e }}</a></h1> 19 <h1>{{ entry.title|e }}</h1>
21 <div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{% trans "view original" %}</a></div> 20 <div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></div>
22 </header> 21 </header>
23 <article> 22 <article>
24 <div id="readityourselfcontent"> 23 <div id="readityourselfcontent">
25 {{ content | raw }} 24 {{ content | raw }}
26 </div> 25 </div>
27 </article> 26 </article>
28 <div class="vieworiginal txtright small"><a href="{$url}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{% trans "view original" %}</a></div> 27 <div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></div>
29 <div class="backhome"> 28 <div class="backhome">
30 <a href="./" title="{% trans "back to home" %}">&larr;</a> 29 <a href="./" title="{% trans "back to home" %}">&larr;</a>
31 <a href="#" title="{% trans "back to top" %}">&uarr;</a> 30 <a href="#" title="{% trans "back to top" %}">&uarr;</a>
32 </div> 31 </div>
33 <div class="support"> 32 <div class="support">
34 {% 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">{% trans "contact us by mail" %}</a> 33 {% 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>
35 </div> 34 </div>
36 </div> 35 </div>
37{% endblock %} 36{% endblock %}
38 37
39{% block js %} 38{% block js %}
40 <script type="text/javascript" src="./tpl/js/jquery-1.9.1.min.js"></script> 39 <script type="text/javascript" src="./tpl/js/jquery-1.9.1.min.js"></script>
41 <script type="text/javascript" src="./tpl/js/poche.js"></script>
42{% endblock %} \ No newline at end of file 40{% endblock %} \ No newline at end of file