This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2016-09-24 07:47:51 -04:00
|
|
|
- content_for :header_tags do
|
2017-01-09 06:37:15 -05: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 07:47:51 -04:00
|
|
|
= javascript_include_tag 'application'
|
|
|
|
|
2016-09-19 17:25:59 -04:00
|
|
|
= react_component 'Mastodon', default_props, class: 'app-holder', prerender: false
|