<%= post.body %>
<%= if Aggiedit.Roles.guard?(@current_user, :edit, post) && Aggiedit.Roles.guard?(@current_user, :edit, post) do %> <%= live_patch "Edit", to: Routes.post_index_path(@socket, :edit, @room, post) %> <%= link "Delete", to: "#", phx_click: "delete", phx_value_id: post.id %> <% end %>