' data-base-path='<%= custom_path_if_needed help_root_path(locale: '{locale}'), @knowledge_base %>' data-primary-locale="<%= (filter_primary_kb_locale || all_locales.first)&.locale %>"> <%= kb_public_page_title(@knowledge_base, @object, @page_title_error) %> <%= stylesheet_link_tag "knowledge_base.css", :media => 'all' %> <%= render 'knowledge_base/public/inline_stylesheet', knowledge_base: @knowledge_base, locale: system_locale_via_uri %>
<%= render 'knowledge_base/public/top_banner', object: @object || @knowledge_base if editor? %>

<%= link_to custom_path_if_needed(help_root_path(locale: params[:locale]), @knowledge_base) do %> <% end %>

<%= render_breadcrumb_if_needed(@knowledge_base, @object, @alternative) %> <%= yield %>
<%= javascript_tag nonce: true do -%> if(window.fetch === undefined || window.Promise === undefined || Element.prototype.prepend === undefined){ var polyfillScriptTag = document.createElement('script'); polyfillScriptTag.setAttribute('src', '<%= path_to_javascript('knowledge_base_public_polyfills') %>'); polyfillScriptTag.setAttribute('nonce', '<%= content_security_policy_nonce %>'); document.body.appendChild(polyfillScriptTag); } <% end -%> <%= javascript_include_tag 'knowledge_base_public', nonce: true %>