Don't show reply form unless logged in
This commit is contained in:
parent
fd336f0bed
commit
4c9adb3336
|
@ -1,5 +1,6 @@
|
||||||
<%= render "_status.html", conn: @conn, author: @author, status: @status, note: @status.data["object"] %>
|
<%= render "_status.html", conn: @conn, author: @author, status: @status, note: @status.data["object"] %>
|
||||||
|
|
||||||
|
<%= unless is_nil(@current_user) do %>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<%= form_tag Routes.frontend_path(@conn, :post_status), method: :post, class: "compose-status" do %>
|
<%= form_tag Routes.frontend_path(@conn, :post_status), method: :post, class: "compose-status" do %>
|
||||||
|
@ -8,3 +9,4 @@
|
||||||
<%= submit "Post" %>
|
<%= submit "Post" %>
|
||||||
<hr>
|
<hr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue