# HG changeset patch # User Goffi # Date 1538591890 -7200 # Node ID 38af118a7d7433e01f9de4f60a9d03d59b998057 # Parent 466c9690c43a23e4a015ef562ac20663df01e569 template: better css files order diff -r 466c9690c43a -r 38af118a7d74 sat/tools/common/template.py --- a/sat/tools/common/template.py Wed Oct 03 20:37:12 2018 +0200 +++ b/sat/tools/common/template.py Wed Oct 03 20:38:10 2018 +0200 @@ -585,13 +585,13 @@ path_elems = template_data.path.split(u'/') path_elems[-1] = os.path.splitext(path_elems[-1])[0] - for name_root in (u'styles_extra', u'styles'): - self._appendCSSPaths(template_data, css_files, css_files_noscript, name_root) - css_path = self.getStaticPath(template_data, u'fonts.css') if css_path is not None: css_files.append(self.getFrontURL(css_path)) + for name_root in (u'styles', u'styles_extra'): + self._appendCSSPaths(template_data, css_files, css_files_noscript, name_root) + for idx in xrange(len(path_elems)): name_root = u"_".join(path_elems[:idx+1]) self._appendCSSPaths(template_data, css_files, css_files_noscript, name_root)