[FIX] base: bootstrap css load issue fixed for asset mode

When you was in debug=assets and that a less file was malformed, the
error was not displayed correctly.

Now we load a minimal layout (bootstrap style)

This commit closes #19799
This commit is contained in:
Suraj Shukla
2017-09-30 12:21:27 +02:00
committed by Jeremy Kersten
parent 7f56039ddb
commit 536bb2f7d9
+5 -2
View File
@@ -112,8 +112,11 @@ class AssetsBundle(object):
if self.css_errors:
msg = '\n'.join(self.css_errors)
response.append(JavascriptAsset(self, inline=self.dialog_message(msg)).to_html())
for style in self.stylesheets:
response.append(style.to_html())
response.append(StylesheetAsset(self, url="/web/static/lib/bootstrap/css/bootstrap.css").to_html())
if not self.css_errors:
for style in self.stylesheets:
response.append(style.to_html())
if js:
for jscript in self.javascripts:
response.append(jscript.to_html())