<%= 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/head' %> <% if Avo::PACKED %> <%= javascript_include_tag "/avo-assets/avo", "data-turbo-track": "reload", defer: true %> <%= stylesheet_link_tag "/avo-assets/avo", "data-turbo-track": "reload", defer: true %> <% else %> <%= javascript_include_tag "avo", "data-turbo-track": "reload", defer: true %> <%= stylesheet_link_tag "avo", "data-turbo-track": "reload", defer: true %> <% if Rails.env.development? %> <%= javascript_include_tag "hotwire-livereload", defer: true %> <% end %> <% end %>
<%= render partial: "avo/partials/navbar" %>
<%= render Avo::SidebarComponent.new %>
<%= render partial: "avo/partials/custom_tools_alert" %>
<%= yield %> <%= render partial: "avo/partials/footer" %>
<%= turbo_frame_tag 'actions_show' %> <%= turbo_frame_tag 'attach_modal' %> <%= turbo_frame_tag 'destroy_attachment_form' %> <%= 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-50 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" %>