]> git.immae.eu Git - github/wallabag/wallabag.git/blob - tpl/view.twig
view of an article
[github/wallabag/wallabag.git] / tpl / view.twig
1 {% extends "layout.twig" %}
2 {% block title %}{% trans "home" %}{% endblock %}
3
4 {% block content %}
5 <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">
10 <ul>
11 <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>
12 <li><a href="#" id="themeswitch">{% trans "dark" %}</a></li>
13 <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>
14 <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>
15 <li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
16 </ul>
17 </div>
18 <header class="mbm">
19 <h1><a href="{{ entry.url|e }}">{{ entry.title|e }}</a></h1>
20 <div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{% trans "view original" %}</a></div>
21 </header>
22 <article>
23 <div id="readityourselfcontent">
24 {{ content | raw }}
25 </div>
26 </article>
27 <div class="vieworiginal txtright small"><a href="{$url}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{% trans "view original" %}</a></div>
28 <div class="backhome">
29 <a href="./" title="{% trans "back to home" %}">&larr;</a>
30 <a href="#" title="{% trans "back to top" %}">&uarr;</a>
31 </div>
32 <div class="support">
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">{% trans "contact us by mail" %}</a>
34 </div>
35 </div>
36 {% endblock %}
37
38 {% block js %}
39 <script type="text/javascript" src="./tpl/js/jquery-1.9.1.min.js"></script>
40 <script type="text/javascript" src="./tpl/js/poche.js"></script>
41 {% endblock %}