Title | Body | |
---|---|---|
<%= post.title %> | <%= post.body %> | <%= live_redirect "Show", to: Routes.post_show_path(@socket, :show, @room, post) %> <%= live_patch "Edit", to: Routes.post_index_path(@socket, :edit, @room, post) %> <%= link "Delete", to: "#", phx_click: "delete", phx_value_id: post.id, data: [confirm: "Are you sure?"] %> |