[Wok] Add new CSS and JS assets resources

Hi team, I'm trying to add Bootstrap.min.css file do Kimchi plugin but I think I have to edit the Makefiles to include them in the server. If I edit wok-ui.html.tmpl it doesn't render anything and throws a 404 error. If I remove the line that I'm using to include Bootstrap or any other CSS or JS file that I've added, it goes back to normal. Where do I edit to include my new assets? Thanks, Samuel

Hi Samuel, As per my understanding, we need to add the Bootstrap.min.css and Bootstrap.min.js in the following folder 'libs\themes\base' and '\libs' of source tree respectively and mention the src path in wok-ui.html.tmpl . Once we build and install, those files will be included in server. For generating customized minified js/css and deploying the same to server , we need to make change in corresponding Makefiles. Please let me know if it works for you. On 8/15/2015 12:28 AM, Samuel Henrique De Oliveira Guimaraes wrote:
Hi team,
I’m trying to add Bootstrap.min.css file do Kimchi plugin but I think I have to edit the Makefiles to include them in the server. If I edit wok-ui.html.tmpl it doesn’t render anything and throws a 404 error. If I remove the line that I’m using to include Bootstrap or any other CSS or JS file that I’ve added, it goes back to normal.
Where do I edit to include my new assets?
Thanks,
Samuel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Hi Samuel, Was the below information helpful to you? Please let me know if any help needed from my end. Thanks, Atreyee On 8/17/2015 4:35 PM, Atreye Mukhopadhyay wrote:
Hi Samuel, As per my understanding, we need to add the Bootstrap.min.css and Bootstrap.min.js in the following folder 'libs\themes\base' and '\libs' of source tree respectively and mention the src path in wok-ui.html.tmpl . Once we build and install, those files will be included in server. For generating customized minified js/css and deploying the same to server , we need to make change in corresponding Makefiles.
Please let me know if it works for you. On 8/15/2015 12:28 AM, Samuel Henrique De Oliveira Guimaraes wrote:
Hi team,
I’m trying to add Bootstrap.min.css file do Kimchi plugin but I think I have to edit the Makefiles to include them in the server. If I edit wok-ui.html.tmpl it doesn’t render anything and throws a 404 error. If I remove the line that I’m using to include Bootstrap or any other CSS or JS file that I’ve added, it goes back to normal.
Where do I edit to include my new assets?
Thanks,
Samuel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Hi, Yes, it was. Some jQuery UI properties were overriding Bootstrap CSS so I had to temporarily move jquery-ui.custom.css from kimchi /plugins/kimchi/ui/css/theme-default/ to kimchi/ui/libs/themes/base. Once the new-ui CSS is done I'll do a cleanup and keep this file where it originally was. I also renamed all Fontello references on the build/configure scripts because of Fedora font licenses issue (http://fedoraproject.org/wiki/Legal_considerations_for_fonts#Approved_font_l...). FontAwesome is the only font-icon package that has a RPM package listed on Fedora PkgDB. Thanks, Samuel From: Atreye Mukhopadhyay [mailto:atreyee@linux.vnet.ibm.com] Sent: terça-feira, 18 de agosto de 2015 09:14 To: Samuel Henrique De Oliveira Guimaraes <samuel.guimaraes@eldorado.org.br>; kimchi-devel@ovirt.org Subject: Re: [Kimchi-devel] [Wok] Add new CSS and JS assets resources Hi Samuel, Was the below information helpful to you? Please let me know if any help needed from my end. Thanks, Atreyee On 8/17/2015 4:35 PM, Atreye Mukhopadhyay wrote: Hi Samuel, As per my understanding, we need to add the Bootstrap.min.css and Bootstrap.min.js in the following folder 'libs\themes\base' and '\libs' of source tree respectively and mention the src path in wok-ui.html.tmpl . Once we build and install, those files will be included in server. For generating customized minified js/css and deploying the same to server , we need to make change in corresponding Makefiles. Please let me know if it works for you. On 8/15/2015 12:28 AM, Samuel Henrique De Oliveira Guimaraes wrote: Hi team, I'm trying to add Bootstrap.min.css file do Kimchi plugin but I think I have to edit the Makefiles to include them in the server. If I edit wok-ui.html.tmpl it doesn't render anything and throws a 404 error. If I remove the line that I'm using to include Bootstrap or any other CSS or JS file that I've added, it goes back to normal. Where do I edit to include my new assets? Thanks, Samuel _______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org<mailto:Kimchi-devel@ovirt.org> http://lists.ovirt.org/mailman/listinfo/kimchi-devel _______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org<mailto:Kimchi-devel@ovirt.org> http://lists.ovirt.org/mailman/listinfo/kimchi-devel
participants (2)
-
Atreye Mukhopadhyay
-
Samuel Henrique De Oliveira Guimaraes