Use variables for certificate sass dir

This commit is contained in:
Andrés González
2020-10-13 16:43:39 -03:00
parent 6a399b3996
commit e45a88a940

View File

@@ -167,6 +167,8 @@ def get_theme_sass_dirs(system, theme_dir):
system_sass_dir = path(system) / "static" / "sass"
sass_dir = theme_dir / system / "static" / "sass"
css_dir = theme_dir / system / "static" / "css"
certs_sass_dir = theme_dir / system / "static" / "certificates" / "sass"
certs_css_dir = theme_dir / system / "static" / "certificates" / "css"
dependencies = SASS_LOOKUP_DEPENDENCIES.get(system, [])
if sass_dir.isdir():
@@ -197,8 +199,8 @@ def get_theme_sass_dirs(system, theme_dir):
# now compile theme sass files for certificate
if system == 'lms':
dirs.append({
"sass_source_dir": theme_dir / system / "static" / "certificates" / "sass",
"css_destination_dir": theme_dir / system / "static" / "certificates" / "css",
"sass_source_dir": certs_sass_dir,
"css_destination_dir": certs_css_dir,
"lookup_paths": [
sass_dir / "partials",
sass_dir