diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-06-22 14:55:49 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-22 14:55:49 +0200 |
commit | 151f45db0ef6d0a4737eb220b0803b3ccfd0b6f5 (patch) | |
tree | a3132b8f83fc8fdc95e860b1d11e854743d589b4 | |
parent | 77255d668828d7ae4cceb186b5215a0d4ddd69f6 (diff) | |
download | wallabag-151f45db0ef6d0a4737eb220b0803b3ccfd0b6f5.tar.gz wallabag-151f45db0ef6d0a4737eb220b0803b3ccfd0b6f5.tar.zst wallabag-151f45db0ef6d0a4737eb220b0803b3ccfd0b6f5.zip |
Don't load js for nothing in prod
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig index 2e8fe65c..a67807f9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig | |||
@@ -14,11 +14,12 @@ | |||
14 | <meta name="twitter:site" content="@wallabagapp" /> | 14 | <meta name="twitter:site" content="@wallabagapp" /> |
15 | <meta name="twitter:title" content="{{ entry.title|e|raw }}" /> | 15 | <meta name="twitter:title" content="{{ entry.title|e|raw }}" /> |
16 | <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}…" /> | 16 | <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}…" /> |
17 | {% if not app.debug %} | 17 | {% if app.debug %} |
18 | <script src="{{ asset('bundles/wallabagcore/public.dev.js') }}"></script> | ||
19 | {% else %} | ||
18 | <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}"> | 20 | <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}"> |
19 | {% endif %} | 21 | {% endif %} |
20 | 22 | ||
21 | <script src="{{ asset('bundles/wallabagcore/public' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script> | ||
22 | </head> | 23 | </head> |
23 | <body> | 24 | <body> |
24 | <header> | 25 | <header> |