diff --git a/app/views/foreman/smart_proxies/_content_tab.html.erb b/app/views/foreman/smart_proxies/_content_tab.html.erb index c54de330c98..62c2b815079 100644 --- a/app/views/foreman/smart_proxies/_content_tab.html.erb +++ b/app/views/foreman/smart_proxies/_content_tab.html.erb @@ -1,3 +1,5 @@ -<%= javascript_include_tag *webpack_asset_paths('katello', extension: 'js') %> +<% content_for(:javascripts) do -%> + <%= javascript_include_tag *webpack_asset_paths('katello', extension: 'js') %> +<% end %> <% @smartProxyId= @smart_proxy.id %> <%= react_component('Content', smartProxyId: @smartProxyId, organizationId: Organization.current&.id,) %> diff --git a/app/views/overrides/activation_keys/_host_environment_select.html.erb b/app/views/overrides/activation_keys/_host_environment_select.html.erb index a5da5a8e03b..63df7fb4283 100644 --- a/app/views/overrides/activation_keys/_host_environment_select.html.erb +++ b/app/views/overrides/activation_keys/_host_environment_select.html.erb @@ -1,5 +1,7 @@ <% f ||= form %> -<%= javascript "katello/hosts/host_and_hostgroup_edit" %> +<% content_for(:javascripts) do -%> + <%= javascript "katello/hosts/host_and_hostgroup_edit" %> +<% end %>