diff options
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/_head.twig | 34 | ||||
-rwxr-xr-x | themes/default/_import.twig | 2 | ||||
-rwxr-xr-x | themes/default/about.twig | 12 | ||||
-rwxr-xr-x | themes/default/config.twig | 5 | ||||
-rwxr-xr-x | themes/default/css/style-default.css | 15 | ||||
-rwxr-xr-x | themes/default/css/style.css | 32 | ||||
-rwxr-xr-x | themes/default/edit-tags.twig | 5 | ||||
-rwxr-xr-x | themes/default/home.twig | 39 | ||||
-rw-r--r-- | themes/default/img/default/forward.png | bin | 0 -> 287 bytes | |||
-rw-r--r-- | themes/default/img/default/home.png | bin | 0 -> 329 bytes | |||
-rw-r--r-- | themes/default/img/default/right.png | bin | 0 -> 198 bytes | |||
-rw-r--r-- | themes/default/img/default/shaarli.png | bin | 729 -> 0 bytes | |||
-rwxr-xr-x | themes/default/view.twig | 17 |
13 files changed, 145 insertions, 16 deletions
diff --git a/themes/default/_head.twig b/themes/default/_head.twig index 277e3833..e3841c77 100755 --- a/themes/default/_head.twig +++ b/themes/default/_head.twig | |||
@@ -29,8 +29,40 @@ | |||
29 | <link rel="stylesheet" href="{{ poche_url }}themes/{{ theme }}/css/style-{{ theme }}.css" media="all" title="{{ theme }} theme"> | 29 | <link rel="stylesheet" href="{{ poche_url }}themes/{{ theme }}/css/style-{{ theme }}.css" media="all" title="{{ theme }} theme"> |
30 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/messages.css" media="all"> | 30 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/messages.css" media="all"> |
31 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/print.css" media="print"> | 31 | <link rel="stylesheet" href="{{ poche_url }}themes/default/css/print.css" media="print"> |
32 | <script src="{{ poche_url }}themes/_global/js/jquery-2.0.3.min.js"></script> | 32 | <script src="{{ poche_url }}themes/_global/js/jquery-2.1.3.min.js"></script> |
33 | <script src="{{ poche_url }}themes/_global/js/jquery.mobile.events.touch.min.js"></script> | ||
33 | <script src="{{ poche_url }}themes/_global/js/autoClose.js"></script> | 34 | <script src="{{ poche_url }}themes/_global/js/autoClose.js"></script> |
34 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> | 35 | <script src="{{ poche_url }}themes/default/js/closeMessage.js"></script> |
35 | <script src="{{ poche_url }}themes/_global/js/saveLink.js"></script> | 36 | <script src="{{ poche_url }}themes/_global/js/saveLink.js"></script> |
37 | <script src="{{ poche_url }}themes/_global/js/keyboard.js"></script> | ||
36 | <script src="{{ poche_url }}themes/_global/js/popupForm.js"></script> | 38 | <script src="{{ poche_url }}themes/_global/js/popupForm.js"></script> |
39 | |||
40 | <!-- Enable Firefox Social Services | ||
41 | script put there because of the call to poche_url --> | ||
42 | |||
43 | <script> | ||
44 | var baseurl = "{{ poche_url }}"; | ||
45 | console.log(baseurl); | ||
46 | var data = { | ||
47 | |||
48 | "name": "wallabag", | ||
49 | "iconURL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-16.png", | ||
50 | "icon32URL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-32.png", | ||
51 | "icon64URL": baseurl + "/themes/_global/img/appicon/firefox-service-icon-64.png", | ||
52 | |||
53 | "shareURL": baseurl + "/index.php?action=add&plainurl=%{url}", | ||
54 | |||
55 | "description": "wallabag Extension for Firefox - The (soon to become) best way to save articles, videos and more", | ||
56 | "author": "Thomas Citharel", | ||
57 | "homepageURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service", | ||
58 | "origin": "https://wallabag.org", | ||
59 | "postActivationURL": "http://doc.wallabag.org/en/User/save_your_first_article.html#firefox-social-api-service", | ||
60 | |||
61 | "version": "0.1" | ||
62 | }; | ||
63 | function activateSocialFeature(node) { | ||
64 | var event = new CustomEvent("ActivateSocialFeature"); | ||
65 | node.setAttribute("data-service", JSON.stringify(data)); | ||
66 | node.dispatchEvent(event); | ||
67 | } | ||
68 | </script> \ No newline at end of file | ||
diff --git a/themes/default/_import.twig b/themes/default/_import.twig index c59b7a15..079203a2 100755 --- a/themes/default/_import.twig +++ b/themes/default/_import.twig | |||
@@ -2,11 +2,13 @@ | |||
2 | <!-- | 2 | <!-- |
3 | $(document).ready(function() { | 3 | $(document).ready(function() { |
4 | $("body").css("cursor", "wait"); | 4 | $("body").css("cursor", "wait"); |
5 | $("#content").css("display", "none"); | ||
5 | 6 | ||
6 | setTimeout(function(){ | 7 | setTimeout(function(){ |
7 | window.location = './?import'; | 8 | window.location = './?import'; |
8 | }, {{ import.delay }} ); | 9 | }, {{ import.delay }} ); |
9 | }); | 10 | }); |
11 | |||
10 | //--> | 12 | //--> |
11 | </script> | 13 | </script> |
12 | <div class="messages warning"> | 14 | <div class="messages warning"> |
diff --git a/themes/default/about.twig b/themes/default/about.twig index bab9b5eb..e0776d9c 100755 --- a/themes/default/about.twig +++ b/themes/default/about.twig | |||
@@ -20,7 +20,7 @@ | |||
20 | <dd><a href="https://github.com/wallabag/wallabag/graphs/contributors">{% trans "on Github" %}</a></dd> | 20 | <dd><a href="https://github.com/wallabag/wallabag/graphs/contributors">{% trans "on Github" %}</a></dd> |
21 | 21 | ||
22 | <dt>{% trans "Bug reports" %}</dt> | 22 | <dt>{% trans "Bug reports" %}</dt> |
23 | <dd><a href="http://support.wallabag.org">{% trans "On our support website" %}</a> {% trans "or" %} <a href="https://github.com/wallabag/wallabag/issues">{% trans "on Github" %}</a></dd> | 23 | <dd><a href="http://support.wallabag.org">{% trans "On our support website" %}</a>{% trans " or " %}<a href="https://github.com/wallabag/wallabag/issues">{% trans "on Github" %}</a></dd> |
24 | 24 | ||
25 | <dt>{% trans "License" %}</dt> | 25 | <dt>{% trans "License" %}</dt> |
26 | <dd><a href="http://en.wikipedia.org/wiki/MIT_License">MIT</a></dd> | 26 | <dd><a href="http://en.wikipedia.org/wiki/MIT_License">MIT</a></dd> |
@@ -29,6 +29,16 @@ | |||
29 | <dd>{{ constant('POCHE') }}</dd> | 29 | <dd>{{ constant('POCHE') }}</dd> |
30 | </dl> | 30 | </dl> |
31 | 31 | ||
32 | <h2>{% trans "Getting help" %}</h2> | ||
33 | |||
34 | <dl> | ||
35 | <dt>{% trans "Documentation" %}</dt> | ||
36 | <dd>{% trans %}<a href="docs/">Offline documentation</a> and <a href="https://doc.wallabag.org/">online documentation</a> (up to date){% endtrans %}</dd> | ||
37 | |||
38 | <dt>{% trans "Support" %}</dt> | ||
39 | <dd><a href="http://support.wallabag.org/">http://support.wallabag.org/</a></dd> | ||
40 | </dl> | ||
41 | |||
32 | <h2>{% trans "Helping wallabag" %}</h2> | 42 | <h2>{% trans "Helping wallabag" %}</h2> |
33 | 43 | ||
34 | <p>{% trans "wallabag is free and opensource. You can help us:" %}</p> | 44 | <p>{% trans "wallabag is free and opensource. You can help us:" %}</p> |
diff --git a/themes/default/config.twig b/themes/default/config.twig index 6302a6a3..24e3e570 100755 --- a/themes/default/config.twig +++ b/themes/default/config.twig | |||
@@ -16,7 +16,8 @@ | |||
16 | </p> | 16 | </p> |
17 | <h3>Browser Plugins</h3> | 17 | <h3>Browser Plugins</h3> |
18 | <ul> | 18 | <ul> |
19 | <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Firefox Add-On" %}</a></li> | 19 | <li><a href="https://addons.mozilla.org/firefox/addon/wallabag/" target="_blank">{% trans "Standard Firefox Add-On" %}</a></li> |
20 | {% if https %}<li><button onclick="activateSocialFeature(this)">{% trans "Mozilla Services (Social API) Extension" %}</button></li>{% else %}<li>{% trans "Mozilla Services (Social API) Extension needs an https connection" %}</li>{% endif %} | ||
20 | <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li> | 21 | <li><a href="https://chrome.google.com/webstore/detail/wallabag/bepdcjnnkglfjehplaogpoonpffbdcdj" target="_blank">{% trans "Chrome Extension" %}</a></li> |
21 | </ul> | 22 | </ul> |
22 | <h3>Mobile Apps</h3> | 23 | <h3>Mobile Apps</h3> |
@@ -102,7 +103,7 @@ | |||
102 | <p class="more-info">{% trans "Fetching process is controlled by two constants in your config file: IMPORT_LIMIT (how many articles are fetched at once) and IMPORT_DELAY (delay between fetch of next batch of articles)." %}</p> | 103 | <p class="more-info">{% trans "Fetching process is controlled by two constants in your config file: IMPORT_LIMIT (how many articles are fetched at once) and IMPORT_DELAY (delay between fetch of next batch of articles)." %}</p> |
103 | 104 | ||
104 | <h2>{% trans "Export your wallabag data" %}</h2> | 105 | <h2>{% trans "Export your wallabag data" %}</h2> |
105 | <p><a href="?export" target="_blank">{% trans "Export JSON" %}</a><br> | 106 | <p><a href="?export" target="_blank">{% trans "JSON export" %}</a><br> |
106 | <span class="more-info">Data will be exported in a single JSON file.</span></p> | 107 | <span class="more-info">Data will be exported in a single JSON file.</span></p> |
107 | 108 | ||
108 | <h2>{% trans "Fancy an E-Book ?" %}</h2> | 109 | <h2>{% trans "Fancy an E-Book ?" %}</h2> |
diff --git a/themes/default/css/style-default.css b/themes/default/css/style-default.css index da8703f2..7530efbb 100755 --- a/themes/default/css/style-default.css +++ b/themes/default/css/style-default.css | |||
@@ -1,7 +1,19 @@ | |||
1 | a.back span { | 1 | a.back span { |
2 | background-image: url('../img/default/home.png'); | ||
3 | } | ||
4 | |||
5 | a.previous span { | ||
2 | background-image: url('../img/default/left.png'); | 6 | background-image: url('../img/default/left.png'); |
3 | } | 7 | } |
4 | 8 | ||
9 | a.next span { | ||
10 | background-image: url('../img/default/right.png'); | ||
11 | } | ||
12 | |||
13 | a.archiveandnext span { | ||
14 | background-image: url('../img/default/forward.png'); | ||
15 | } | ||
16 | |||
5 | a.top span { | 17 | a.top span { |
6 | background-image: url('../img/default/top.png'); | 18 | background-image: url('../img/default/top.png'); |
7 | } | 19 | } |
@@ -31,7 +43,8 @@ a.twitter span { | |||
31 | } | 43 | } |
32 | 44 | ||
33 | a.shaarli span { | 45 | a.shaarli span { |
34 | background-image: url('../img/default/shaarli.png'); | 46 | background-image: url('../../_global/img/icons/shaarli.png'); |
47 | background-size: 16px 16px; | ||
35 | } | 48 | } |
36 | 49 | ||
37 | a.flattr span { | 50 | a.flattr span { |
diff --git a/themes/default/css/style.css b/themes/default/css/style.css index a122dc54..9a681748 100755 --- a/themes/default/css/style.css +++ b/themes/default/css/style.css | |||
@@ -151,7 +151,7 @@ a:visited { | |||
151 | text-indent: -9999px; | 151 | text-indent: -9999px; |
152 | } | 152 | } |
153 | 153 | ||
154 | .random { | 154 | .icon-random { |
155 | display: inline-block; | 155 | display: inline-block; |
156 | width: 16px; | 156 | width: 16px; |
157 | height: 16px; | 157 | height: 16px; |
@@ -455,3 +455,33 @@ pre code { | |||
455 | border: 1px solid #ddd; | 455 | border: 1px solid #ddd; |
456 | font-size: 0.96em; | 456 | font-size: 0.96em; |
457 | } | 457 | } |
458 | |||
459 | /* ========================================================================== | ||
460 | Tags-related styles | ||
461 | ========================================================================== */ | ||
462 | |||
463 | .suggestedtag { | ||
464 | padding: 4px; | ||
465 | cursor: pointer; | ||
466 | display: inline-block; | ||
467 | } | ||
468 | |||
469 | #tagcloud .smallesttag { | ||
470 | font-size: x-small; | ||
471 | } | ||
472 | |||
473 | #tagcloud .smalltag { | ||
474 | font-size: small; | ||
475 | } | ||
476 | |||
477 | #tagcloud .mediumtag { | ||
478 | font-size:medium; | ||
479 | } | ||
480 | |||
481 | #tagcloud .largetag { | ||
482 | font-size:large; | ||
483 | } | ||
484 | |||
485 | #tagcloud .largesttag { | ||
486 | font-size:larger; | ||
487 | } | ||
diff --git a/themes/default/edit-tags.twig b/themes/default/edit-tags.twig index c29427e0..61cc94f1 100755 --- a/themes/default/edit-tags.twig +++ b/themes/default/edit-tags.twig | |||
@@ -19,7 +19,7 @@ | |||
19 | {% trans "no tags" %} | 19 | {% trans "no tags" %} |
20 | {% endif %} | 20 | {% endif %} |
21 | <ul> | 21 | <ul> |
22 | {% for tag in tags %}<li>{{ tag.value }} <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %} | 22 | {% for tag in tags %}<li><span class="alreadytagged">{{ tag.value }}</span> <a href="./?action=remove_tag&tag_id={{ tag.id }}&id={{ entry_id }}">✘</a></li>{% endfor %} |
23 | </ul> | 23 | </ul> |
24 | <form method="post" action="./?action=add_tag" id="editTags"> | 24 | <form method="post" action="./?action=add_tag" id="editTags"> |
25 | <input type="hidden" name="entry_id" value="{{ entry_id }}" /> | 25 | <input type="hidden" name="entry_id" value="{{ entry_id }}" /> |
@@ -30,6 +30,7 @@ | |||
30 | {% trans "You can enter multiple tags, separated by commas." %}</p> | 30 | {% trans "You can enter multiple tags, separated by commas." %}</p> |
31 | 31 | ||
32 | </form> | 32 | </form> |
33 | <br> | 33 | All existing tags : |
34 | <ul id="tagcloud">{% for eachtag in alltags %}<li class="suggestedtag {{ eachtag.cssclass }}">{{ eachtag.value }}</li>{% endfor %}</ul> | ||
34 | <a href="./?view=view&id={{ entry_id }}">« {% trans "return to article" %}</a> | 35 | <a href="./?view=view&id={{ entry_id }}">« {% trans "return to article" %}</a> |
35 | {% endblock %} | 36 | {% endblock %} |
diff --git a/themes/default/home.twig b/themes/default/home.twig index 8fe56397..a320cc7f 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -25,22 +25,47 @@ | |||
25 | <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3> | 25 | <h3>{% trans "Tag" %}: <b>{{ tag.value }}</b></h3> |
26 | {% endif %} | 26 | {% endif %} |
27 | 27 | ||
28 | {% if entries is empty %} | 28 | {% if entries is empty%} |
29 | <div class="messages warning"><p>{% trans "No articles found." %}</p></div> | 29 | {% if view == 'home' %}<div class="messages success"><p>{% trans "No articles unread. Good job !" %} |
30 | {% elseif view == 'fav' %}<div class="messages warning"><p>{% trans "No articles favourited" %} | ||
31 | {% elseif view == 'archive' %}<div class="messages warning"><p>{% trans "No articles marked as read" %} | ||
32 | {% elseif view == 'tags' %}<div class="messages warning"><p>{% trans "No articles with this tag found" %} | ||
33 | {% elseif searchterm is defined %}<div class="messages warning"><p>{% trans %}No articles found for « {{ searchterm }} »{% endtrans %} | ||
34 | {% else %}<div class="messages warning"><p>{% trans "No articles found" %}{% endif %} | ||
35 | </p></div> | ||
30 | {% else %} | 36 | {% else %} |
31 | {% block pager %} | 37 | {% block pager %} |
32 | {% if nb_results > 1 %} | 38 | {% if nb_results > 1 %} |
33 | <div class="results"> | 39 | <div class="results"> |
34 | <div class="nb-results">{{ nb_results }} {% trans "results" %}{% if searchterm is defined %}{% trans " found for « " %} {{ searchterm }} »{% endif %} | 40 | <div class="nb-results"> |
35 | <a class="random" href="?action=random"><span>{% trans "random" %}</span></a></div> | 41 | {% if view == 'home' %} |
42 | {{ nb_results }} {% trans "articles unread" %} | ||
43 | {% elseif view == 'fav' %} | ||
44 | {{ nb_results }} {% trans "articles favourited" %} | ||
45 | {% elseif view == 'archive' %} | ||
46 | {{ nb_results }} {% trans "articles marked as read" %} | ||
47 | {% elseif view == 'tag' %} | ||
48 | {{ nb_results }} {% trans "articles with this tag" %} | ||
49 | {% elseif searchterm is defined %}{{ nb_results }} | ||
50 | {% trans %}articles found for « {{ searchterm }} »{% endtrans %} | ||
51 | {% else %} | ||
52 | {{ nb_results }} {% trans "articles" %} | ||
53 | {% endif %} | ||
54 | {% if view == 'home' or view == 'fav' or view == 'archive' %} | ||
55 | <a href="?action=random&view={{ view }}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %} | ||
56 | </div> | ||
36 | {{ page_links | raw }} | 57 | {{ page_links | raw }} |
37 | </div> | 58 | </div> |
38 | {% elseif nb_results == 1 %} | 59 | {% elseif nb_results == 1 %} |
39 | {% if searchterm is defined %} | ||
40 | <div class="results"> | 60 | <div class="results"> |
41 | <div class="nb-results">{% trans "Only one result found for " %} « {{ searchterm }} »</div> | 61 | <div class="nb-results"> |
62 | {% if view == 'home' %}{% trans "Only one article unread. Way to go !" %} | ||
63 | {% elseif view == 'fav' %}{% trans "Just one article favourited" %} | ||
64 | {% elseif view == 'archive' %}{% trans "One article marked as read" %} | ||
65 | {% elseif view == 'tag' %}{% trans "One article with this tag" %} | ||
66 | {% elseif searchterm is defined %}{% trans %}Only one result found for « {{ searchterm }} »{% endtrans %} | ||
67 | {% else %}{% trans "One article found" %}{% endif %}</div> | ||
42 | </div> | 68 | </div> |
43 | {% endif %} | ||
44 | {% endif %} | 69 | {% endif %} |
45 | {% endblock %} | 70 | {% endblock %} |
46 | {% for entry in entries %} | 71 | {% for entry in entries %} |
diff --git a/themes/default/img/default/forward.png b/themes/default/img/default/forward.png new file mode 100644 index 00000000..c2a22e38 --- /dev/null +++ b/themes/default/img/default/forward.png | |||
Binary files differ | |||
diff --git a/themes/default/img/default/home.png b/themes/default/img/default/home.png new file mode 100644 index 00000000..f0089166 --- /dev/null +++ b/themes/default/img/default/home.png | |||
Binary files differ | |||
diff --git a/themes/default/img/default/right.png b/themes/default/img/default/right.png new file mode 100644 index 00000000..845995dc --- /dev/null +++ b/themes/default/img/default/right.png | |||
Binary files differ | |||
diff --git a/themes/default/img/default/shaarli.png b/themes/default/img/default/shaarli.png deleted file mode 100644 index 1eb30f60..00000000 --- a/themes/default/img/default/shaarli.png +++ /dev/null | |||
Binary files differ | |||
diff --git a/themes/default/view.twig b/themes/default/view.twig index 44cbf41b..0010d18f 100755 --- a/themes/default/view.twig +++ b/themes/default/view.twig | |||
@@ -5,10 +5,12 @@ | |||
5 | {% include '_pocheit-form.twig' %} | 5 | {% include '_pocheit-form.twig' %} |
6 | <div id="article_toolbar"> | 6 | <div id="article_toolbar"> |
7 | <ul> | 7 | <ul> |
8 | {% if navigate.next %}<li><a href="./?view=view&id={{ navigate.nextid|e }}" class="tool previous"><span>{% trans "Next Article" %}</span></a></li>{% endif %} | ||
8 | <li><a href="./" title="{% trans "Return home" %}" class="tool back"><span>{% trans "Return home" %}</span></a></li> | 9 | <li><a href="./" title="{% trans "Return home" %}" class="tool back"><span>{% trans "Return home" %}</span></a></li> |
9 | <li><a href="#top" title="{% trans "Back to top" %}" class="tool top"><span>{% trans "Back to top" %}</span></a></li> | 10 | <li><a href="#top" title="{% trans "Back to top" %}" class="tool top"><span>{% trans "Back to top" %}</span></a></li> |
10 | <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> | 11 | <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> |
11 | <li><a title="{% trans "Mark as read" %}" class="tool {% if entry.is_read == 0 %}archive-off{% else %}archive{% endif %}" href="javascript: void(null);" id="markAsRead"><span>{% trans "Toggle mark as read" %}</span></a></li> | 12 | <li><a title="{% trans "Mark as read" %}" class="tool {% if entry.is_read == 0 %}archive-off{% else %}archive{% endif %}" href="javascript: void(null);" id="markAsRead"><span>{% trans "Toggle mark as read" %}</span></a></li> |
13 | {% if navigate.next %}<li><a title="{% trans "Mark as read and go to next article" %}" class="tool archiveandnext" href="./?action=archive_and_next&id={{ entry.id|e }}" id="markAsReadAndNext"><span>{% trans "Toggle mark as read and go to next article" %}</span></a></li>{% endif %} | ||
12 | <li><a title="{% trans "Favorite" %}" class="tool {% if entry.is_fav == 0 %}fav-off{% else %}fav{% endif %}" href="javascript: void(null);" id="setFav"><span>{% trans "Toggle favorite" %}</span></a></li> | 14 | <li><a title="{% trans "Favorite" %}" class="tool {% if entry.is_fav == 0 %}fav-off{% else %}fav{% endif %}" href="javascript: void(null);" id="setFav"><span>{% trans "Toggle favorite" %}</span></a></li> |
13 | <li><a title="{% trans "Delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "Delete" %}</span></a></li> | 15 | <li><a title="{% trans "Delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "Delete" %}</span></a></li> |
14 | {% 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 %} | 16 | {% 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 %} |
@@ -19,12 +21,13 @@ | |||
19 | {% 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 %} | 21 | {% 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 %} |
20 | {% 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 %} | 22 | {% 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 %} |
21 | {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %} | 23 | {% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %} |
22 | {% if constant('RELOAD_ARTICLE') == 1 %}<li><a class="tool reload" href="./?action=reload_article&id={{ entry.id|e }}" title="{% trans "Reload article" %}"><span>{% trans "Reload article" %}</span></a></li>{% endif %}} | 24 | {% if constant('RELOAD_ARTICLE') == 1 %}<li><a class="tool reload" href="./?action=reload_article&id={{ entry.id|e }}" title="{% trans "Reload article" %}"><span>{% trans "Reload article" %}</span></a></li>{% endif %} |
23 | {% if constant('EPUB') == 1 %}<li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate ePub file">EPUB</a></li>{% endif %} | 25 | {% if constant('EPUB') == 1 %}<li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate ePub file">EPUB</a></li>{% endif %} |
24 | {% if constant('MOBI') == 1 %}<li><a href="./?mobi&method=id&value={{ entry.id|e }}" title="Generate Mobi file">MOBI</a></li>{% endif %} | 26 | {% if constant('MOBI') == 1 %}<li><a href="./?mobi&method=id&value={{ entry.id|e }}" title="Generate Mobi file">MOBI</a></li>{% endif %} |
25 | {% if constant('PDF') == 1 %}<li><a href="./?pdf&method=id&value={{ entry.id|e }}" title="Generate PDF file">PDF</a></li>{% endif %} | 27 | {% if constant('PDF') == 1 %}<li><a href="./?pdf&method=id&value={{ entry.id|e }}" title="Generate PDF file">PDF</a></li>{% endif %} |
26 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&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> | 28 | <li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&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> |
27 | {% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %} | 29 | {% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %} |
30 | {% if navigate.previous %}<li><a href="./?view=view&id={{ navigate.previousid|e }}" class="tool next"><span>{% trans "Previous Article" %}</span></a></li>{% endif %} | ||
28 | </ul> | 31 | </ul> |
29 | </div> | 32 | </div> |
30 | <div id="article"> | 33 | <div id="article"> |
@@ -122,5 +125,17 @@ | |||
122 | $('#article_toolbar .tool.top').parent().hide(); | 125 | $('#article_toolbar .tool.top').parent().hide(); |
123 | } | 126 | } |
124 | }); | 127 | }); |
128 | |||
129 | // Use left and right arrow to navigate on with keyboard | ||
130 | navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}'); | ||
131 | |||
132 | // swipe to right or left on mobile to navigate | ||
133 | $('article').on("swiperight", function(){ | ||
134 | goLeft('?view=view&id={{ navigate.nextid|e }}'); | ||
135 | }); | ||
136 | $('article').on("swipeleft", function(){ | ||
137 | goRight('?view=view&id={{ navigate.previousid|e }}'); | ||
138 | }); | ||
139 | |||
125 | </script> | 140 | </script> |
126 | {% endblock %} | 141 | {% endblock %} |