diff options
Diffstat (limited to 'themes/default')
-rwxr-xr-x | themes/default/_head.twig | 1 | ||||
-rw-r--r-- | themes/default/_messages.twig | 7 | ||||
-rwxr-xr-x | themes/default/home.twig | 2 | ||||
-rwxr-xr-x | themes/default/view.twig | 8 |
4 files changed, 7 insertions, 11 deletions
diff --git a/themes/default/_head.twig b/themes/default/_head.twig index e3841c77..2785fd23 100755 --- a/themes/default/_head.twig +++ b/themes/default/_head.twig | |||
@@ -42,7 +42,6 @@ | |||
42 | 42 | ||
43 | <script> | 43 | <script> |
44 | var baseurl = "{{ poche_url }}"; | 44 | var baseurl = "{{ poche_url }}"; |
45 | console.log(baseurl); | ||
46 | var data = { | 45 | var data = { |
47 | 46 | ||
48 | "name": "wallabag", | 47 | "name": "wallabag", |
diff --git a/themes/default/_messages.twig b/themes/default/_messages.twig index 679aa098..80ae456d 100644 --- a/themes/default/_messages.twig +++ b/themes/default/_messages.twig | |||
@@ -1 +1,6 @@ | |||
1 | {{ messages | raw }} \ No newline at end of file | 1 | {{ messages | raw }} |
2 | {% if view == 'home' %} | ||
3 | <div class="messages information"> | ||
4 | <p><a href="http://doc.wallabag.org">wallabag v2 is out, please read the documentation to upgrade.</a></p> | ||
5 | </div> | ||
6 | {% endif %} \ No newline at end of file | ||
diff --git a/themes/default/home.twig b/themes/default/home.twig index a320cc7f..08e33fad 100755 --- a/themes/default/home.twig +++ b/themes/default/home.twig | |||
@@ -52,7 +52,7 @@ | |||
52 | {{ nb_results }} {% trans "articles" %} | 52 | {{ nb_results }} {% trans "articles" %} |
53 | {% endif %} | 53 | {% endif %} |
54 | {% if view == 'home' or view == 'fav' or view == 'archive' %} | 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 %} | 55 | <a href="?action=random&view={{ view }}" title="{% trans "random" %}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %} |
56 | </div> | 56 | </div> |
57 | {{ page_links | raw }} | 57 | {{ page_links | raw }} |
58 | </div> | 58 | </div> |
diff --git a/themes/default/view.twig b/themes/default/view.twig index 0010d18f..d1b6496e 100755 --- a/themes/default/view.twig +++ b/themes/default/view.twig | |||
@@ -129,13 +129,5 @@ | |||
129 | // Use left and right arrow to navigate on with keyboard | 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 }}'); | 130 | navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}'); |
131 | 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 | |||
140 | </script> | 132 | </script> |
141 | {% endblock %} | 133 | {% endblock %} |