%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"}

- if feature?(:admin_style_v3, spree_current_user)
  = stylesheet_pack_tag 'admin-style-v3', media: "screen, print"
- else
  = stylesheet_pack_tag 'admin-styles', 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"

%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
