You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.7 KiB

  1. !!! 5
  2. %html{ lang: I18n.locale }
  3. %head
  4. %meta{ charset: 'utf-8' }/
  5. %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1' }/
  6. %meta{ 'http-equiv' => 'X-UA-Compatible', content: 'IE=edge' }/
  7. %link{ rel: 'icon', href: favicon_path, type: 'image/x-icon' }/
  8. %link{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }/
  9. %link{ rel: 'mask-icon', href: '/mask-icon.svg', color: '#2B90D9' }/
  10. %link{ rel: 'manifest', href: '/manifest.json' }/
  11. %meta{ name: 'msapplication-config', content: '/browserconfig.xml' }/
  12. %meta{ name: 'theme-color', content: '#282c37' }/
  13. %meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }/
  14. %title<
  15. - if content_for?(:page_title)
  16. = yield(:page_title)
  17. = ' - '
  18. = title
  19. = javascript_pack_tag "locales", integrity: true, crossorigin: 'anonymous'
  20. - if @theme
  21. - if @theme[:supported_locales].include? I18n.locale.to_s
  22. = javascript_pack_tag "locales/#{@theme[:flavour]}/#{I18n.locale}", integrity: true, crossorigin: 'anonymous'
  23. - elsif @theme[:supported_locales].include? 'en'
  24. = javascript_pack_tag "locales/#{@theme[:flavour]}/en", integrity: true, crossorigin: 'anonymous'
  25. = csrf_meta_tags
  26. = yield :header_tags
  27. -# These must come after :header_tags to ensure our initial state has been defined.
  28. = render partial: 'layouts/theme', object: @core
  29. = render partial: 'layouts/theme', object: @theme
  30. - body_classes ||= @body_classes || ''
  31. - body_classes += ' system-font' if current_account&.user&.setting_system_font_ui
  32. %body{ class: add_rtl_body_class(body_classes) }
  33. = content_for?(:content) ? yield(:content) : yield