mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
It seems that we have functionality that depends on the order the scripts are executed. Using defer breaks that. Using defer is better performance wise so we should try to address this eventually, might need to wait till we get rid of angular.
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}
|
|
%meta{ name: "turbo-cache-control", content: "no-cache" }
|
|
|
|
= csrf_meta_tags
|
|
= action_cable_meta_tag
|
|
|
|
%title
|
|
- if content_for? :html_title
|
|
= yield :html_title
|
|
- elsif content_for? :page_title
|
|
= strip_tags(yield(:page_title))
|
|
- else
|
|
= t("spree.admin.tab.#{controller.controller_name}", :default => controller.controller_name.titleize)
|
|
= " - OFN #{t(:administration)}"
|
|
|
|
%link{:href => "https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese", :rel => "stylesheet", :type => "text/css"}
|
|
= stylesheet_pack_tag 'admin-style-v3', media: "screen, print"
|
|
= render "layouts/bugsnag_js"
|
|
|
|
- if content_for? :minimal_js
|
|
= javascript_include_tag 'admin_minimal'
|
|
- else
|
|
= javascript_include_tag 'admin/all'
|
|
|
|
= render "spree/admin/shared/translations"
|
|
= render "spree/admin/shared/routes"
|
|
|
|
= javascript_pack_tag "admin", "data-turbo-track": "reload", defer: false
|
|
|
|
%script
|
|
= raw "var AUTH_TOKEN = \"#{form_authenticity_token}\";"
|
|
|
|
%link{'data-require' => "font-awesome@*", 'data-semver'=>"4.2.0", 'rel' => "stylesheet", 'href' => "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.css"}
|
|
|
|
= render "layouts/auth_token_script"
|
|
|
|
= yield :head
|