[horizon][customization]

Thomas Goirand zigo at debian.org
Wed Mar 2 11:16:44 UTC 2022


On 2/28/22 09:45, Mathilde Hermet wrote:
> Hello Openstack team,
> 
> 
> I'm currently working on customizing the Horizon (xena) dashboard to use 
> the OVHcloud assets: logo.svg and logo-splash.svg.
> 
> I've been following this documentation 
> https://docs.openstack.org/horizon/latest/configuration/themes.html
> 
> I added the ovhcloud theme in 
> horizon/openstack_dashboard/local/local_settings.py in AVAILABLE_THEMES,
> 
> I created the subdir ovhcloud in horizon/openstack_dashboard/themes and 
> I created a ovhcloud/img with logo.svg and logo-splash.svg in it.
> 
> I put a _variables.scss and a _styles.scss in /themes/ovhcloud/
> 
> Then I executed python manage.py collectstatic
> 
> It put all the files in horizon-sources/horizon.../static/themes/ovhcloud
> 
> 
> But then when trying to connect with the session cookie 
> theme="ovhcloud", I have a 500 error.
> 
> i don't think it comes from images because i've been puting it in 
> /horizon-souurces/horizon.../static/dashbaord.img and they were 
> displayed correctly.
> 
> 
> Do you have any idea about the misconfiguration I've done ?
> 
> 
> Best regards,
> 
> 
> Mathilde Hermet

Hi Mathilde,

I'm not sure where your error is, but if you want, you can have a look 
at for exemple:
https://packages.debian.org/openstack-dashboard-debian-theme

which has it's git over here:
https://salsa.debian.org/openstack-team/debian/openstack-dashboard-debian-theme

I hope this helps,

Cheers,

Thomas Goirand (zigo)



More information about the openstack-discuss mailing list