Mastodon/app/views/layouts/embedded.html.haml
Essem 564b8720e1
Re-add data-user-flavour attribute (#3356)
* Re-add `data-user-flavour` attribute

* Add data-user-flavour to embed/error pages

* Use actual flavor for embeds/error pages
2026-01-19 20:07:47 +01:00

27 lines
968 B
Plaintext

!!! 5
%html{ lang: I18n.locale, 'data-contrast': 'auto', 'data-color-scheme': 'light', 'data-user-flavour': current_flavour.parameterize }
%head
%meta{ charset: 'utf-8' }/
%meta{ name: 'robots', content: 'noindex' }/
- if cdn_host?
%link{ rel: 'dns-prefetch', href: cdn_host }/
%meta{ name: 'cdn-host', content: cdn_host }/
- if storage_host?
%link{ rel: 'dns-prefetch', href: storage_host }/
= javascript_inline_tag 'theme-selection.js'
= vite_client_tag
= vite_react_refresh_tag
= vite_polyfills_tag
= theme_style_tags current_theme
= vite_preload_file_tag "mastodon/locales/#{I18n.locale}.json" # TODO: fix preload for flavour
= render_initial_state
= flavoured_vite_typescript_tag 'embed.tsx', integrity: true, crossorigin: 'anonymous'
%body.embed
= yield
.logo-resources{ 'tabindex' => '-1', 'inert' => true, 'aria-hidden' => 'true' }
= inline_svg_tag 'logo-symbol-icon.svg'