%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}

= csrf_meta_tags

%title
  - if content_for? :html_title
    = yield :html_title
  - else
    = t(controller.controller_name, :default => controller.controller_name.titleize)
  = " - OFN #{t(:administration)}"

%link{:href => "//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-styles'
= render "layouts/bugsnag_js"
= 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' => "//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.css"}

= render "layouts/auth_token_script"

= yield :head

%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}

= csrf_meta_tags

%title
  - if content_for? :html_title
    = yield :html_title
  - else
    = t(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-styles'
= render "layouts/bugsnag_js"
= 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

Use https when loading fonts in admin
Use https when loading fonts in admin
