Browse Source

Don't show status actions unless logged in

master
Shadowfacts 1 year ago
parent
commit
cf115c3f7c
Signed by: shadowfacts GPG Key ID: 94A5AB95422746E5
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      lib/clacks_web/templates/frontend/_status.html.eex

+ 5
- 3
lib/clacks_web/templates/frontend/_status.html.eex View File

@ -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…
Cancel
Save