[openstack-dev] [Horizon] Moving _conf and _scripts to dashboard

David Lyle dklyle0 at gmail.com
Thu Dec 11 17:22:34 UTC 2014


I'm probably not understanding the nuance of the question but moving the
_scripts.html file to openstack_dashboard creates some circular
dependencies, does it not? templates/base.html in the horizon side of the
repo includes _scripts.html and insures that the javascript needed by the
existing horizon framework is present.

_conf.html seems like a better candidate for moving as it's more closely
tied to the application code.

David


On Wed, Dec 10, 2014 at 7:20 PM, Thai Q Tran <tqtran at us.ibm.com> wrote:

> Sorry for duplicate mail, forgot the subject.
>
> -----Thai Q Tran/Silicon Valley/IBM wrote: -----
> To: "OpenStack Development Mailing List \(not for usage questions\)" <
> openstack-dev at lists.openstack.org>
> From: Thai Q Tran/Silicon Valley/IBM
> Date: 12/10/2014 03:37PM
> Subject: Moving _conf and _scripts to dashboard
>
> The way we are structuring our javascripts today is complicated. All of
> our static javascripts reside in /horizon/static and are imported through
> _conf.html and _scripts.html. Notice that there are already some panel
> specific javascripts like: horizon.images.js, horizon.instances.js,
> horizon.users.js. They do not belong in horizon. They belong in
> openstack_dashboard because they are specific to a panel.
>
> Why am I raising this issue now? In Angular, we need controllers written
> in javascript for each panel. As we angularize more and more panels, we
> need to store them in a way that make sense. To me, it make sense for us to
> move _conf and _scripts to openstack_dashboard. Or if this is not possible,
> then provide a mechanism to override them in openstack_dashboard.
>
> Thoughts?
> Thai
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141211/18074ade/attachment.html>


More information about the OpenStack-dev mailing list