2016-09-24 20:47:51 +09:00
|
|
|
- content_for :header_tags do
|
2017-11-17 14:35:25 +09:00
|
|
|
- if theme_data['preload']
|
|
|
|
- theme_data['preload'].each do |link|
|
|
|
|
%link{ href: asset_pack_path("#{link}.js"), crossorigin: 'anonymous', rel: 'preload', as: 'script' }/
|
2017-07-14 05:15:32 +09:00
|
|
|
%meta{name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key}
|
2017-07-08 21:51:05 +09:00
|
|
|
%script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
|
2017-01-09 20:37:15 +09:00
|
|
|
|
2017-09-26 11:24:32 +09:00
|
|
|
= javascript_pack_tag "themes/#{current_theme}", integrity: true, crossorigin: 'anonymous'
|
|
|
|
= stylesheet_pack_tag "themes/#{current_theme}", integrity: true, media: 'all'
|
2016-09-24 20:47:51 +09:00
|
|
|
|
2017-05-08 10:35:25 +09:00
|
|
|
.app-holder#mastodon{ data: { props: Oj.dump(default_props) } }
|
2017-06-08 07:52:56 +09:00
|
|
|
%noscript
|
2017-07-24 03:28:06 +09:00
|
|
|
= image_tag asset_pack_path('logo.svg'), alt: 'Mastodon'
|
|
|
|
|
2017-06-08 07:52:56 +09:00
|
|
|
%div
|
2017-09-02 08:52:28 +09:00
|
|
|
= t('errors.noscript_html')
|