index.html.haml 865 B

1234567891011121314151617
  1. - content_for :header_tags do
  2. = preload_link_tag asset_pack_path('features/getting_started.js'), crossorigin: 'anonymous'
  3. = preload_link_tag asset_pack_path('features/compose.js'), crossorigin: 'anonymous'
  4. = preload_link_tag asset_pack_path('features/home_timeline.js'), crossorigin: 'anonymous'
  5. = preload_link_tag asset_pack_path('features/notifications.js'), crossorigin: 'anonymous'
  6. %meta{name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key}
  7. %script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
  8. = javascript_pack_tag 'application', integrity: true, crossorigin: 'anonymous'
  9. .app-holder#mastodon{ data: { props: Oj.dump(default_props) } }
  10. %noscript
  11. = image_pack_tag 'logo.svg', alt: 'Mastodon'
  12. %div
  13. = t('errors.noscript_html', apps_path: 'https://joinmastodon.org/apps')