<% if !Avo.configuration.turbo[:instant_click] %> <% end %> <%= display_meta_tags site: Avo.configuration.app_name, reverse: true, separator: "—" %> <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= render partial: 'avo/partials/javascript' %> <%= render partial: 'avo/partials/branding' %> <%= render partial: 'avo/partials/pre_head' %> <%= render Avo::AssetManager::StylesheetComponent.new asset_manager: Avo.asset_manager %> <%= stylesheet_link_tag @stylesheet_assets_path, "data-turbo-track": "reload", defer: true %> <% if Avo::PACKED %> <%= javascript_include_tag "/avo-assets/avo.base", "data-turbo-track": "reload", defer: true %> <% else %> <%= javascript_include_tag "avo.base", "data-turbo-track": "reload", defer: true %> <% if Rails.env.development? %> <%= javascript_include_tag "hotwire-livereload", defer: true %> <% end %> <% end %> <%= render Avo::AssetManager::JavascriptComponent.new asset_manager: Avo.asset_manager %> <%= render partial: 'avo/partials/head' %> <%= turbo_refreshes_with method: :replace, scroll: :reset %> <%= content_for :head %>
<%= render partial: "avo/partials/navbar" %>
<%= render Avo::SidebarComponent.new sidebar_open: false, for_mobile: true %>
<%= render partial: "avo/partials/custom_tools_alert" %>
<%= yield.force_encoding('UTF-8') %> <%= render partial: "avo/partials/footer" %>
<%= turbo_frame_tag Avo::ACTIONS_TURBO_FRAME_ID, data: {turbo_temporary: 1} %> <%= turbo_frame_tag 'attach_modal' %> <%= turbo_frame_tag 'alerts', class: "fixed inset-0 bottom-0 flex flex-col space-y-4 items-end justify-right px-4 py-6 sm:p-6 justify-end z-[100] pointer-events-none" do %> <%= render Avo::FlashAlertsComponent.new flashes: flash %> <% # In case we have other general error messages %> <% if @errors.present? %> <% @errors.each do |message| %> <%= render Avo::AlertComponent.new :error, message %> <% end %> <% end %> <% end %> <%= render partial: "avo/partials/scripts" %>