diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-11-24 13:11:57 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-11-24 13:11:57 +0100 |
commit | 85c5a1ff8d919d3d36a8125c9bbd0d9220025729 (patch) | |
tree | 28a95f126132dbe6c53e1e48f5c2099d29d5649b /themes/courgette/_view.twig | |
parent | 7b8bb75228fff2a629388313a3d12cd63c846ad6 (diff) | |
download | wallabag-85c5a1ff8d919d3d36a8125c9bbd0d9220025729.tar.gz wallabag-85c5a1ff8d919d3d36a8125c9bbd0d9220025729.tar.zst wallabag-85c5a1ff8d919d3d36a8125c9bbd0d9220025729.zip |
failover if theme folder doesn't exist
Diffstat (limited to 'themes/courgette/_view.twig')
-rwxr-xr-x | themes/courgette/_view.twig | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/themes/courgette/_view.twig b/themes/courgette/_view.twig deleted file mode 100755 index 5234f766..00000000 --- a/themes/courgette/_view.twig +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | {% extends "layout.twig" %} | ||
2 | {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} | ||
3 | {% block content %} | ||
4 | <div id="article_toolbar"> | ||
5 | <ul> | ||
6 | <li><a href="./" title="{% trans "back to home" %}" class="tool back"><span>{% trans "back to home" %}</span></a></li> | ||
7 | <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> | ||
8 | <li><a title="{% trans "toggle 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> | ||
9 | <li><a title="{% trans "toggle 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> | ||
10 | <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "delete" %}</span></a></li> | ||
11 | {% if constant('SHARE_TWITTER') == 1 %}<li><a href="https://twitter.com/home?status={{entry.title|url_encode}}%20{{ entry.url|url_encode }}%20via%20@wallabagapp" target="_blank" class="tool twitter" title="{% trans "tweet" %}"><span>{% trans "tweet" %}</span></a></li>{% endif %} | ||
12 | {% if constant('SHARE_MAIL') == 1 %}<li><a href="mailto:?subject={{ entry.title|url_encode }}&body={{ entry.url|url_encode }}%20via%20@wallabagapp" class="tool email" title="{% trans "email" %}"><span>{% trans "email" %}</span></a></li>{% endif %} | ||
13 | {% 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 %} | ||
14 | {% if constant('FLATTR') == 1 %}{% if flattr.status == constant('FLATTRABLE') %}<li class="flattrli"><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 %} | ||
15 | {% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon" target="_blank" title="{% trans "carrot" %}"><span>{% trans "carrot" %}</span></a></li>{% endif %} | ||
16 | <li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate epub file">EPUB</a></li> | ||
17 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{% trans "this article appears wrong?" %}" class="tool bad-display"><span>{% trans "this article appears wrong?" %}</span></a></li> | ||
18 | </ul> | ||
19 | </div> | ||
20 | <div id="article"> | ||
21 | <header class="mbm"> | ||
22 | <h1>{{ entry.title|raw }}</h1> | ||
23 | </header> | ||
24 | <article> | ||
25 | {{ content | raw }} | ||
26 | </article> | ||
27 | </div> | ||
28 | <script src="{{ poche_url }}themes/{{theme}}/js/restoreScroll.js"></script> | ||
29 | <script type="text/javascript"> | ||
30 | $(document).ready(function() { | ||
31 | |||
32 | $(window).scroll(function(e){ | ||
33 | var scrollTop = $(window).scrollTop(); | ||
34 | var docHeight = $(document).height(); | ||
35 | var scrollPercent = (scrollTop) / (docHeight); | ||
36 | var scrollPercentRounded = Math.round(scrollPercent*100)/100; | ||
37 | savePercent({{ entry.id|e }}, scrollPercentRounded); | ||
38 | }); | ||
39 | |||
40 | retrievePercent({{ entry.id|e }}); | ||
41 | |||
42 | $(window).resize(function(){ | ||
43 | retrievePercent({{ entry.id|e }}); | ||
44 | }); | ||
45 | }); | ||
46 | </script> | ||
47 | {% endblock %} \ No newline at end of file | ||