20 lines
459 B
Elixir
20 lines
459 B
Elixir
<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 %>
|
|
|
|
<ul>
|
|
<%= for status <- @statuses do %>
|
|
<li>
|
|
<div class="status">
|
|
<div class="status-content">
|
|
<%= status.data["object"]["content"] %>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|