2016-09-24 11:47:51 +00:00
|
|
|
- content_for :header_tags do
|
2017-01-09 11:37:15 +00:00
|
|
|
:javascript
|
|
|
|
window.INITIAL_STATE = {
|
|
|
|
"meta": {
|
|
|
|
"access_token": "#{@token}",
|
|
|
|
"locale": "#{I18n.locale}",
|
|
|
|
"me": #{current_account.id}
|
|
|
|
},
|
|
|
|
|
|
|
|
"compose": {
|
|
|
|
"me": #{current_account.id},
|
|
|
|
"private": #{current_account.locked?}
|
|
|
|
},
|
|
|
|
|
|
|
|
"accounts": {
|
|
|
|
#{current_account.id}: #{render(file: 'api/v1/accounts/show', locals: { account: current_user.account }, formats: :json)}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-09-24 11:47:51 +00:00
|
|
|
= javascript_include_tag 'application'
|
|
|
|
|
2016-09-19 21:25:59 +00:00
|
|
|
= react_component 'Mastodon', default_props, class: 'app-holder', prerender: false
|