Skip to content

Commit

Permalink
Refs #37104 - wrap scripts in content_for(:javascripts)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Jan 31, 2024
1 parent f477c6a commit a1fd6f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion app/views/foreman/smart_proxies/_content_tab.html.erb
Original file line number Diff line number Diff line change
@@ -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,) %>
Original file line number Diff line number Diff line change
@@ -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 %>
<style>
option.kt-env { margin-left: 0em; }
option.kt-cv { margin-left: 1em; }
Expand Down
5 changes: 3 additions & 2 deletions app/views/overrides/activation_keys/_host_tab_pane.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

<%= javascript "katello/hosts/activation_key_edit" %>
<% content_for(:javascripts) do -%>
<%= javascript "katello/hosts/activation_key_edit" %>
<% end %>


<div class="tab-pane" id="activation_keys">
Expand Down
6 changes: 3 additions & 3 deletions app/views/overrides/organizations/_edit_override.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% if @taxonomy.is_a?(Organization) %>

<%= javascript_include_tag 'katello/organizations/download_certificate' %>

<% content_for(:javascripts) do -%>
<%= javascript_include_tag 'katello/organizations/download_certificate' %>
<% end %>
<%= text_f f, :label, :disabled => true, :class => 'input-xlarge' %>
<%= selectable_f(f, :service_level, options_for_select(service_level_options, service_level_selected), {}, :label => _('Default System SLA')) %>

Expand Down

0 comments on commit a1fd6f4

Please sign in to comment.