]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Don't load js for nothing in prod 3204/head
authorThomas Citharel <tcit@tcit.fr>
Thu, 22 Jun 2017 12:55:49 +0000 (14:55 +0200)
committerThomas Citharel <tcit@tcit.fr>
Thu, 22 Jun 2017 12:55:49 +0000 (14:55 +0200)
src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig

index 2e8fe65c64bc6be83f30cf7498e9fde5eeb3b325..a67807f982d684f3c768a7c3a06bfd5ab4d5f489 100644 (file)
         <meta name="twitter:site" content="@wallabagapp" />
         <meta name="twitter:title" content="{{ entry.title|e|raw }}" />
         <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
-        {% if not app.debug %}
+        {% if app.debug %}
+            <script src="{{ asset('bundles/wallabagcore/public.dev.js') }}"></script>
+        {% else %}
             <link rel="stylesheet" href="{{ asset('bundles/wallabagcore/public.css') }}">
         {% endif %}
 
-        <script src="{{ asset('bundles/wallabagcore/public' ~ (app.debug ? '.dev' : '') ~ '.js') }}"></script>
     </head>
     <body>
         <header>