How to embed a script block to OpenOndemand html

Hello team, I am using the OpenOndemand ansible role to deploy our OpenOndemand portal, now we have a request that need to embed a script block to the bottom of the html body, so that we can change the status of the web portal, I am just wondering, what is the best practice to do this. thanks.

<script src="https://<company>"></script>

You can either create a widget and have it display there. Looks like custom_javascript_paths is coming in 3.1.

OR - you can override or hack the application.html.erb to include it.

We distribute the file application.html.erb in /var/www/ood/apps/sys/dashboard/app/views/layouts/application.html.erb. You can edit this file directory (after backing it up!) or possibly supply an override at /etc/ood/config/apps/dashboard/views/layouts/application.html.erb that has your edits.

I believe the override is the better option.

Thank you Jeff, I will check it out.

Create override the file in /etc/ood/config/apps/dashboard/views/layouts/application.html.erb works great as expected, thanks Jeff.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.