2013-10-03 14:10:44 +02:00
{% extends "layout.twig" %}
{% block title %} {{ entry .title | raw }} ( {{ entry .url | e | getDomain }} ) {% endblock %}
{% block content %}
<div id="article_toolbar">
<ul>
2013-12-15 06:18:26 +01:00
<li><a href="./" title=" {% trans "Return home" %} " class="tool back"><span> {% trans "Return home" %} </span></a></li>
<li><a href="#top" title=" {% trans "Back to top" %} " class="tool top"><span> {% trans "Back to top" %} </span></a></li>
2013-10-03 14:10:44 +02:00
<li><a href=" {{ entry .url | e }} " target="_blank" title=" {% trans "original" %} : {{ entry .title | e }} " class="tool link"><span> {{ entry .url | e | getDomain }} </span></a></li>
2013-12-15 06:18:26 +01:00
<li><a title=" {% trans "Mark as read" %} " class="tool {% if entry .is_read == 0 %} archive-off {% else %} archive {% endif %} " href="./?action=toggle_archive&id= {{ entry .id | e }} "><span> {% trans "Toggle mark as read" %} </span></a></li>
<li><a title=" {% trans "Favorite" %} " class="tool {% if entry .is_fav == 0 %} fav-off {% else %} fav {% endif %} " href="./?action=toggle_fav&id= {{ entry .id | e }} "><span> {% trans "Toggle favorite" %} </span></a></li>
<li><a title=" {% trans "Delete" %} " class="tool delete" href="./?action=delete&id= {{ entry .id | e }} "><span> {% trans "Delete" %} </span></a></li>
{% if constant ( 'SHARE_TWITTER' ) == 1 %} <li><a href="https://twitter.com/home?status= {{ entry .title | url_encode }} %20 {{ entry .url | url_encode }} %20via%20@getpoche" target="_blank" class="tool twitter" title=" {% trans "Tweet" %} "><span> {% trans "Tweet" %} </span></a></li> {% endif %}
{% if constant ( 'SHARE_MAIL' ) == 1 %} <li><a href="mailto:?subject= {{ entry .title | url_encode }} &body= {{ entry .url | url_encode }} %20via%20@getpoche" class="tool email" title=" {% trans "Email" %} "><span> {% trans "Email" %} </span></a></li> {% endif %}
2013-10-03 14:10:44 +02:00
{% if constant ( 'SHARE_SHAARLI' ) == 1 %} <li><a href=" {{ constant ( 'SHAARLI_URL' ) }} /index.php?post= {{ entry .url | url_encode }} &title= {{ entry .title | url_encode }} " target="_blank" class="tool shaarli" title=" {% trans "shaarli" %} "><span> {% trans "shaarli" %} </span></a></li> {% endif %}
{% if constant ( 'FLATTR' ) == 1 %} {% if flattr .status == constant ( 'FLATTRABLE' ) %} <li><a href="http://flattr.com/submit/auto?url= {{ entry .url }} " class="tool flattr" target="_blank" title=" {% trans "flattr" %} "><span> {% trans "flattr" %} </span></a></li> {% elseif flattr .status == constant ( 'FLATTRED' ) %} <li><a href=" {{ flattr .flattrItemURL }} " class="tool flattr" target="_blank" title=" {% trans "flattr" %} "><span> {% trans "flattr" %} </span> {{ flattr .numflattrs }} </a></li> {% endif %} {% endif %}
2013-12-15 06:41:49 +01:00
<li><a href="mailto:support@inthepoche.com?subject=Wrong%20display%20in%20poche&body= {{ entry .url | url_encode }} " title=" {% trans "Does this article appear wrong?" %} " class="tool bad-display"><span> {% trans "Does this article appear wrong?" %} </span></a></li>
2013-10-03 14:10:44 +02:00
</ul>
</div>
<div id="article">
<header class="mbm">
<h1> {{ entry .title | raw }} </h1>
</header>
2013-12-06 13:02:58 +01:00
<aside class="tags">
2013-12-15 06:18:26 +01:00
tags: {% for tag in tags %} <a href="./?view=tag&id= {{ tag .id }} "> {{ tag .value }} </a> {% endfor %} <a href="./?view=edit-tags&id= {{ entry .id | e }} " title=" {% trans "Edit tags" %} ">✎</a>
2013-12-06 13:02:58 +01:00
</aside>
2013-10-03 14:10:44 +02:00
<article>
{{ content | raw }}
</article>
</div>
<script src=" {{ poche_url }} /themes/ {{ constant ( 'DEFAULT_THEME' ) }} /js/restoreScroll.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(window).scroll(function(e) {
var scrollTop = $(window).scrollTop();
var docHeight = $(document).height();
var scrollPercent = (scrollTop) / (docHeight);
var scrollPercentRounded = Math.round(scrollPercent*100)/100;
savePercent( {{ entry .id | e }} , scrollPercentRounded);
});
retrievePercent( {{ entry .id | e }} );
$(window).resize(function() {
retrievePercent( {{ entry .id | e }} );
});
// Hide useless "back to top" link when there is no scrollbar
if ($("body").height() <= $(window).height()) {
$('#article_toolbar .tool.top').parent().hide();
}
});
</script>
2013-12-15 06:18:26 +01:00
{% endblock %}