wallabag/tpl/view.twig

40 lines
2.9 KiB
Twig
Raw Normal View History

2013-08-04 12:07:41 -04:00
{% extends "layout.twig" %}
{% block title %}{% trans "home" %}{% endblock %}
2013-08-05 09:54:37 -04:00
{% block messages %}
{% include '_messages.twig' %}
{% endblock %}
2013-08-04 12:07:41 -04:00
{% block content %}
2013-08-04 16:51:12 -04:00
<div id="article" class="w600p">
<div class="tools">
2013-04-15 08:09:58 -04:00
<ul>
2013-08-05 09:54:37 -04:00
<li><a href="./" title="{% trans "back to home" %}" class="tool">&larr;</a></li>
<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>
<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>
2013-08-04 12:07:41 -04:00
<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>
2013-08-05 09:54:37 -04:00
{% 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 %}
{% 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 %}
2013-04-15 08:09:58 -04:00
</ul>
</div>
<header class="mbm">
2013-08-05 09:54:37 -04:00
<h1>{{ entry.title|e }}</h1>
<div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></div>
</header>
<article>
<div id="readityourselfcontent">
2013-08-04 16:51:12 -04:00
{{ content | raw }}
</div>
</article>
2013-08-05 09:54:37 -04:00
<div class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></div>
<div class="backhome">
2013-08-04 12:07:41 -04:00
<a href="./" title="{% trans "back to home" %}">&larr;</a>
<a href="#" title="{% trans "back to top" %}">&uarr;</a>
</div>
<div class="support">
2013-08-05 09:54:37 -04:00
{% 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>
</div>
2013-08-04 12:07:41 -04:00
</div>
{% endblock %}
2013-08-04 12:07:41 -04:00
{% block js %}
<script type="text/javascript" src="./tpl/js/jquery-1.9.1.min.js"></script>
{% endblock %}