<%= stylesheet_link_tag "pages/admin" %> <% if Dir.glob(Rails.root.join("app/assets/stylesheets/admin.*")).any? %> <%= stylesheet_link_tag "admin" %> <% end %> <% if File.exist?(Rails.root.join("app/assets/builds/admin.js")) %> <%= javascript_include_tag("admin", defer: true) %> <% else %> <%= javascript_include_tag("pages_core/admin-dist", defer: true) %> <% if Dir.glob(Rails.root.join("app/assets/javascripts/admin.*")).any? %> <%= javascript_include_tag("admin", defer: true) %> <% end %> <% end %> <%= csrf_meta_tag %> <%= google_analytics_tags "UA-5468672-21" %> " data-controller="<%= controller.class.to_s %>" data-action="<%= controller.action_name %>" data-locale="<%= @locale %>">
<%= render partial: "layouts/admin/header" %> <% if content_for?(:main_wrapper) %> <%= yield :main_wrapper %> <% else %>
<%= render(partial: "layouts/admin/page_header") %> <%= yield %>
<% if content_for?(:sidebar) %> <% end %>
<% end %>
<%= react_component "Modal", {} %> <%= react_component "Toast", { notice: flash[:notice], error: flash[:error] } %>