From 8125b415d8f3bd15b8b9169fb8fc528a51603edc Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 7 Feb 2015 18:28:30 +0100 Subject: Avoid raw javascript in template It kills the Symfony Crawler :) --- src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js | 2 ++ src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig | 3 --- src/Wallabag/CoreBundle/Resources/views/_head.html.twig | 1 + src/Wallabag/CoreBundle/Resources/views/layout.html.twig | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js delete mode 100644 src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig (limited to 'src/Wallabag/CoreBundle/Resources') diff --git a/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js b/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js new file mode 100644 index 00000000..2afdfc3c --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js @@ -0,0 +1,2 @@ + +top["bookmarklet-url@wallabag.org"]=""+""+""+""+"bag it!"+''+""+""+" diff --git a/src/Wallabag/CoreBundle/Resources/views/_head.html.twig b/src/Wallabag/CoreBundle/Resources/views/_head.html.twig index f123183b..726b4163 100755 --- a/src/Wallabag/CoreBundle/Resources/views/_head.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/_head.html.twig @@ -37,3 +37,4 @@ + diff --git a/src/Wallabag/CoreBundle/Resources/views/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/layout.html.twig index f062672c..e9ccc58c 100644 --- a/src/Wallabag/CoreBundle/Resources/views/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/layout.html.twig @@ -12,7 +12,6 @@ {% block title %}{% endblock %} - wallabag {% include "WallabagCoreBundle::_head.html.twig" %} - {% include "WallabagCoreBundle::_bookmarklet.html.twig" %} {% include "WallabagCoreBundle::_top.html.twig" %} -- cgit v1.2.3