Adding React.js, Redux, revamping dashboard
This commit is contained in:
parent
68c93f8b85
commit
49520d6e62
34 changed files with 297 additions and 75 deletions
|
@ -1,10 +1 @@
|
|||
= simple_form_for Status.new, url: statuses_path, method: :post do |f|
|
||||
= f.input :text, required: true, autofocus: true, label: false, placeholder: 'What are you up to?'
|
||||
|
||||
.form-actions
|
||||
= f.button :submit, 'Post update'
|
||||
|
||||
- content_for :raw_content do
|
||||
.activity-stream.activity-stream-embedded
|
||||
- @timeline.each do |status|
|
||||
= render partial: 'stream_entries/status', locals: { status: status }
|
||||
= react_component 'Root', { timelines: { home: render(file: 'api/statuses/home', locals: { statuses: @home }, formats: :json), mentions: render(file: 'api/statuses/mentions', locals: { statuses: @mentions }, formats: :json) }}, class: 'app-holder', prerender: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue