Don't show status actions unless logged in

This commit is contained in:
Shadowfacts 2020-05-24 22:50:27 -04:00
parent 4c9adb3336
commit cf115c3f7c
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 5 additions and 3 deletions

View File

@ -18,7 +18,9 @@
<div class="status-content e-content"> <div class="status-content e-content">
<%= raw(@note["content"]) %> <%= raw(@note["content"]) %>
</div> </div>
<div class="status-actions"> <%= unless is_nil(@conn.assigns[:user]) do %>
<a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a> <div class="status-actions">
</div> <a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a>
</div>
<% end %>
</div> </div>