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">
|
<div class="status-content e-content">
|
||||||
<%= raw(@note["content"]) %>
|
<%= raw(@note["content"]) %>
|
||||||
</div>
|
</div>
|
||||||
|
<%= unless is_nil(@conn.assigns[:user]) do %>
|
||||||
<div class="status-actions">
|
<div class="status-actions">
|
||||||
<a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a>
|
<a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue