Bläddra i källkod

fix the asset not changed bug

Olivier Massot 5 år sedan
förälder
incheckning
3b24aee2db
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      ot_templating/Resources/Private/Partials/Classic/Assets.html

+ 5 - 1
ot_templating/Resources/Private/Partials/Classic/Assets.html

@@ -29,9 +29,13 @@ Assets included with the VHS viewhelpers
                rewrite="0"
                standalone="1"/>
 
+<f:comment><!-- Theme's file shall not be rewritten since
+                it may not be updated from a website to another --></f:comment>
 <v:asset.style name="theme"
                path="{assets_dir}/style/theme-{ot:template.getPreference(key: 'themeColor')}.css"
-               dependencies="fontAwesome,slick,slick-theme,leaflet"/>
+               dependencies="fontAwesome,slick,slick-theme,leaflet"
+               rewrite="0"
+               standalone="1"/>
 
 
 <f:comment><!-- Script assets --></f:comment>