_web_app.html.haml 668 B

123456789101112131415161718
  1. - content_for :header_tags do
  2. - if user_signed_in?
  3. = preload_pack_asset 'features/compose.js'
  4. = preload_pack_asset 'features/home_timeline.js'
  5. = preload_pack_asset 'features/notifications.js'
  6. %meta{ name: 'initialPath', content: request.path }
  7. %meta{ name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key }
  8. = render_initial_state
  9. = javascript_pack_tag 'application', crossorigin: 'anonymous'
  10. .notranslate.app-holder#mastodon{ data: { props: Oj.dump(default_props) } }
  11. %noscript
  12. = image_pack_tag 'logo.svg', alt: 'Mastodon'
  13. %div
  14. = t('errors.noscript_html', apps_path: 'https://joinmastodon.org/apps')