2019-10-06 23:41:18 +00:00
|
|
|
<h1>Home</h1>
|
|
|
|
<p>Logged in as <%= @user.username %></p>
|
|
|
|
|
|
|
|
<%= form_tag Routes.frontend_path(@conn, :post_status), method: :post do %>
|
|
|
|
<textarea id="content" name="content" cols="30" rows="10"></textarea>
|
|
|
|
<%= submit "Post" %>
|
|
|
|
<% end %>
|
2020-04-20 22:37:07 +00:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
<%= for status <- @statuses do %>
|
|
|
|
<li>
|
|
|
|
<div class="status">
|
|
|
|
<div class="status-content">
|
|
|
|
<%= status.data["object"]["content"] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|