embedded.html.haml 878 B

123456789101112131415161718192021222324
  1. !!! 5
  2. %html{ lang: I18n.locale }
  3. %head
  4. %meta{ charset: 'utf-8' }/
  5. %meta{ name: 'robots', content: 'noindex' }/
  6. - if cdn_host?
  7. %link{ rel: 'dns-prefetch', href: cdn_host }/
  8. %meta{ name: 'cdn-host', content: cdn_host }/
  9. - if storage_host?
  10. %link{ rel: 'dns-prefetch', href: storage_host }/
  11. = stylesheet_pack_tag 'common', media: 'all', crossorigin: 'anonymous'
  12. = stylesheet_pack_tag Setting.default_settings['theme'], media: 'all', crossorigin: 'anonymous'
  13. = javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous'
  14. = preload_pack_asset "locale/#{I18n.locale}-json.js"
  15. = render_initial_state
  16. = javascript_pack_tag 'public', integrity: true, crossorigin: 'anonymous'
  17. %body.embed
  18. = yield
  19. .logo-resources{ 'tabindex' => '-1', 'inert' => true, 'aria-hidden' => true }
  20. = render_symbol :icon