Don't show status actions unless logged in
This commit is contained in:
parent
4c9adb3336
commit
cf115c3f7c
|
@ -18,7 +18,9 @@
|
|||
<div class="status-content e-content">
|
||||
<%= raw(@note["content"]) %>
|
||||
</div>
|
||||
<div class="status-actions">
|
||||
<a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a>
|
||||
</div>
|
||||
<%= unless is_nil(@conn.assigns[:user]) do %>
|
||||
<div class="status-actions">
|
||||
<a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue