How to modify Openstack Kilo Horizon

asked 2016-03-04 01:55:31 -0500

Aditi gravatar image

I have installed Openstack Kilo single node on Virtual Box ubuntu server version and I am trying to modify the Openstack Kilo Horizon page. What I am successful in doing is- I have added a dummy button on the header panel of the Openstack UI by adding a html code of button to the " _header.html " file whose location is

/usr/share/openstack-dashboard/openstack_dashboard/templates

As it is on the header panel, it appears on all the pages/tabs.

What I want is -- There should be a button only on the "Instances" page/tab. I want to know which file should be modified so that the button appears only in the "Instances" tab.

Please help.

edit retag flag offensive close merge delete

Comments

Check this - https://github.com/openstack/horizon/...

You can find how the panels are implemented from the above link to add another panel.

teju gravatar imageteju ( 2016-03-08 02:18:20 -0500 )edit

Yes thanks, I went through the files and made changes in the html files, but whenever I make changes, reload the page on the browser, a server error(500) comes up and the Openstack login page also doesnt appear. The page appears only when I undo all the changes. Could you help me on it?

Aditi gravatar imageAditi ( 2016-03-09 10:35:18 -0500 )edit

Got soln! Go to /usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/instances/templates/instances/index.html and add a simple Django code of button in the anchor tag. Refer http://tutorial.djangogirls.org/en/dj...

Aditi gravatar imageAditi ( 2016-03-10 12:05:55 -0500 )edit