Adding default theme on AVAILABLE_THEME even if custom is enabled.
In case custom theme imports default theme's scss file, upgrading openstack-dashboard pkg causes compression error. By adding default theme to AVAILABLE_THEME list, collectstatic collects proper default theme files to /var/lib/openstack-dashboard/static/ and custom theme can import proper files. Importing default theme's files seems to be normal when someone wants to modify default theme a little not creating whole theme. Closes-Bug: #1812148 Change-Id: Ic1aa03387814a57dde876aa6d95e64b555152b7c
This commit is contained in:
parent
903cbfdb2f
commit
1534accb10
|
@ -906,7 +906,10 @@ try:
|
|||
from custom_theme import *
|
||||
except ImportError:
|
||||
pass
|
||||
AVAILABLE_THEMES += [ ('custom', 'custom', 'themes/custom') ]
|
||||
AVAILABLE_THEMES += [
|
||||
('default', 'Default', 'themes/default'),
|
||||
('custom', 'custom', 'themes/custom')
|
||||
]
|
||||
{% endif %}
|
||||
|
||||
WEBROOT = '{{ webroot }}'
|
||||
|
|
|
@ -908,7 +908,10 @@ try:
|
|||
from custom_theme import *
|
||||
except ImportError:
|
||||
pass
|
||||
AVAILABLE_THEMES += [ ('custom', 'custom', 'themes/custom') ]
|
||||
AVAILABLE_THEMES += [
|
||||
('default', 'Default', 'themes/default'),
|
||||
('custom', 'custom', 'themes/custom')
|
||||
]
|
||||
{% endif %}
|
||||
|
||||
WEBROOT = '{{ webroot }}'
|
||||
|
|
Loading…
Reference in New Issue