aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/base.html.twig
diff options
context:
space:
mode:
authorSimounet <contact@simounet.net>2020-01-29 22:26:00 +0100
committerSimounet <contact@simounet.net>2020-02-07 13:21:48 +0100
commit33e3eeaec851158289e1a236cfe08a475cc6364a (patch)
tree0cb4c3b64622bfcc818026d667ee3b286644bd19 /src/Wallabag/CoreBundle/Resources/views/base.html.twig
parent62107f50d3b43039a635dcaecce317ef0299ee1f (diff)
downloadwallabag-33e3eeaec851158289e1a236cfe08a475cc6364a.tar.gz
wallabag-33e3eeaec851158289e1a236cfe08a475cc6364a.tar.zst
wallabag-33e3eeaec851158289e1a236cfe08a475cc6364a.zip
Load custom.css only if exists
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/base.html.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/base.html.twig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/base.html.twig b/src/Wallabag/CoreBundle/Resources/views/base.html.twig
index 496b3fb6..2486172d 100644
--- a/src/Wallabag/CoreBundle/Resources/views/base.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/base.html.twig
@@ -44,7 +44,9 @@
44 44
45 {% block css %} 45 {% block css %}
46 {% endblock %} 46 {% endblock %}
47 <link rel="stylesheet" href="{{ asset('custom.css') }}"> 47 {% if asset_file_exists('custom.css') %}
48 <link rel="stylesheet" href="{{ asset('custom.css') }}">
49 {% endif %}
48 {% block scripts %} 50 {% block scripts %}
49 <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script> 51 <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
50 <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script> 52 <script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>