X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=themes%2Fdefault%2Fview.twig;h=0010d18fb8da437899af6552f5ca46779fa5bb8f;hb=refs%2Ftags%2F1.9.1alpha2;hp=9f9e23c8166b8a55d2d73dd0bebdfc3b48101f07;hpb=6cab59c3409f4edc9b309b76295cb4061bff3fd0;p=github%2Fwallabag%2Fwallabag.git diff --git a/themes/default/view.twig b/themes/default/view.twig old mode 100644 new mode 100755 index 9f9e23c8..0010d18f --- a/themes/default/view.twig +++ b/themes/default/view.twig @@ -1,35 +1,106 @@ {% extends "layout.twig" %} {% block title %}{{ entry.title|raw }} ({{ entry.url | e | getDomain }}){% endblock %} {% block content %} + {% include '_highlight.twig' %} + {% include '_pocheit-form.twig' %}

{{ entry.title|raw }}

- + {% block tags %} + + {% endblock %}
{{ content | raw }}
+ {{ block('tags') }}
- + -{% endblock %} \ No newline at end of file + + // Use left and right arrow to navigate on with keyboard + navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}'); + + // swipe to right or left on mobile to navigate + $('article').on("swiperight", function(){ + goLeft('?view=view&id={{ navigate.nextid|e }}'); + }); + $('article').on("swipeleft", function(){ + goRight('?view=view&id={{ navigate.previousid|e }}'); + }); + + +{% endblock %}