diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-07 18:08:51 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-08 13:29:41 +0200 |
commit | 880a0e1c0ba7d0ab3320678b076402379a08c8a2 (patch) | |
tree | 2d3d53811a7988974543fc61c70e55ac70e9be5b /src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig | |
parent | 3bfbd22f13e778c6b9713cde0cdf5b7b824f1ff2 (diff) | |
download | wallabag-880a0e1c0ba7d0ab3320678b076402379a08c8a2.tar.gz wallabag-880a0e1c0ba7d0ab3320678b076402379a08c8a2.tar.zst wallabag-880a0e1c0ba7d0ab3320678b076402379a08c8a2.zip |
implement bookmarklet
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig b/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig new file mode 100644 index 00000000..c8fb5612 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig | |||
@@ -0,0 +1 @@ | |||
<a id="bookmarklet" ondragend="this.click();" href="javascript:var url=location.href||url;var wllbg=window.open('{{ url('bookmarklet') }}?url=' + encodeURI(url),'_blank');wllbg.close();void(0);">{% trans %}bag it!{% endtrans %}</a> | |||