Sha256: 039a32c26c9e663b3abc13b6ba1f7fe3891eee9030235f546b26a2476865dabe

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1" name="viewport; charset=utf-8">
<meta content="NONE,NOARCHIVE" name="robots">
<%= csrf_meta_tag %>
<% case RailsAdmin::config.asset_source
   when :webpacker %>
  <%= stylesheet_pack_tag "rails_admin", data: {'turbo-track': 'reload'} %>
  <%= javascript_pack_tag "rails_admin", defer: true, data: {'turbo-track': 'reload'} %>
<% when :sprockets %>
  <% handle_asset_dependency_error do %>
    <%= stylesheet_link_tag "rails_admin/application.css", media: :all, data: {'turbo-track': 'reload'} %>
    <%= javascript_include_tag "rails_admin/application.js", defer: true, data: {'turbo-track': 'reload'} %>
  <% end %>
<% when :vite %>
  <%= vite_javascript_tag "rails_admin", defer: true, data: {'turbo-track': 'reload'} %>
<% when :webpack %>
  <%= stylesheet_link_tag "rails_admin.css", media: :all, data: {'turbo-track': 'reload'} %>
  <%= javascript_include_tag "rails_admin.js", defer: true, data: {'turbo-track': 'reload'} %>
<% when :importmap %>
  <%= stylesheet_link_tag "rails_admin.css", media: :all, data: {'turbo-track': 'reload'} %>
  <%= javascript_inline_importmap_tag(RailsAdmin::Engine.importmap.to_json(resolver: self)) %>
  <%= javascript_importmap_module_preload_tags(RailsAdmin::Engine.importmap) %>
  <%= javascript_importmap_shim_nonce_configuration_tag if respond_to? :javascript_importmap_shim_nonce_configuration_tag %>
  <%= javascript_importmap_shim_tag if respond_to? :javascript_importmap_shim_tag %>
  <%= # Preload jQuery and make it global, unless jQuery UI fails to initialize
      tag.script "import jQuery from 'jquery'; window.jQuery = jQuery;".html_safe, type: "module" %>
  <%= javascript_import_module_tag 'rails_admin' %>
<% else
     raise "Unknown asset_source: #{RailsAdmin::config.asset_source}"
   end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_admin-3.2.0 app/views/layouts/rails_admin/_head.html.erb
rails_admin-3.2.0.rc app/views/layouts/rails_admin/_head.html.erb
rails_admin-3.2.0.beta app/views/layouts/rails_admin/_head.html.erb