aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/base.html.twig
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2020-03-28 16:49:29 +0100
committerGitHub <noreply@github.com>2020-03-28 16:49:29 +0100
commit11079d204d865671524dad0c7f418deef29a8c83 (patch)
tree103794af0a224c0d0f49b7d06c99cf2ba7c6febe /src/Wallabag/CoreBundle/Resources/views/base.html.twig
parentd8a40d703e96c10118de025eb5cdcfdd69f26f6a (diff)
parent33e3eeaec851158289e1a236cfe08a475cc6364a (diff)
downloadwallabag-11079d204d865671524dad0c7f418deef29a8c83.tar.gz
wallabag-11079d204d865671524dad0c7f418deef29a8c83.tar.zst
wallabag-11079d204d865671524dad0c7f418deef29a8c83.zip
Merge pull request #4272 from Simounet/feat/load-custom-css-only-if-exists
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>