clacks/lib/clacks_web/templates/frontend/status.html.eex

13 lines
541 B
Elixir
Raw Normal View History

2020-04-25 16:30:47 +00:00
<%= render "_status.html", conn: @conn, author: @author, status: @status, note: @status.data["object"] %>
2020-04-23 02:54:46 +00:00
2020-05-25 02:49:32 +00:00
<%= unless is_nil(@current_user) do %>
2020-04-25 16:30:47 +00:00
<hr>
2020-05-25 02:49:32 +00:00
<%= form_tag Routes.frontend_path(@conn, :post_status), method: :post, class: "compose-status" do %>
<input type="hidden" name="in_reply_to" value="<%= @status.data["object"]["id"] %>">
<textarea id="content" name="content" rows="5" placeholder="Reply" required><%= mentions_for_replying_to(@conn, @status) %></textarea>
<%= submit "Post" %>
<hr>
<% end %>
2020-04-23 02:54:46 +00:00
<% end %>