Ask Your Question
0

Small Horizon dashboard modifications

asked 2018-04-13 09:21:54 -0500

SPYFF gravatar image

Hello!

I would like to make small modifications on Horizon dashboard (no really the appearance but the dynamic behavior). So far I tried to modify the network.controller.js and ports.controller.js files, but if I restart the horizon service (service apache2 restart) nothing happens, works as before, even If I comment out large chunks of code.

I modified the files in the files in the following forlder (network and networkports subfolders):

/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/

What do I miss? I also restarted the machine but wont help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-04-17 02:12:50 -0500

SPYFF gravatar image

updated 2018-04-17 03:45:51 -0500

I find the solution myself. If you modify something on the horizon dashboard, you should have two option:

1) Recompile the modified sources to the cache (located at /var/lib/openstack-dashboard you can done that with

$ python manage.py compress

2) Disable the offline compression (this slows down the dashboard). At the /etc/openstack-dashboard/local_settings.py modify

COMPRESS_ENABLED = False
COMPRESS_OFFLINE = False
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-04-13 09:21:54 -0500

Seen: 35 times

Last updated: Apr 17