comparison sat/tools/common/template.py @ 3747:dd1d1a582438

tools (common/template): fix setting of `css_files_noscript` when `css_file` is specified
author Goffi <goffi@goffi.org>
date Tue, 22 Mar 2022 17:00:42 +0100
parents be6d91572633
children 73936abc6838
comparison
equal deleted inserted replaced
3746:fa3dc4ed7906 3747:dd1d1a582438
1005 1005
1006 template_source = self.env.get_template(template) 1006 template_source = self.env.get_template(template)
1007 1007
1008 if css_files is None: 1008 if css_files is None:
1009 css_files, css_files_noscript = self.getCSSFiles(template_data) 1009 css_files, css_files_noscript = self.getCSSFiles(template_data)
1010 else:
1011 css_files_noscript = []
1010 1012
1011 kwargs["icon_defs"] = self._icon_defs 1013 kwargs["icon_defs"] = self._icon_defs
1012 kwargs["icon"] = self._icon_use 1014 kwargs["icon"] = self._icon_use
1013 kwargs["icon_from_client"] = self._icon_from_client 1015 kwargs["icon_from_client"] = self._icon_from_client
1014 1016