chiya/lib/chiya_web/controllers/comment_html/show.html.heex

23 lines
677 B
Text
Raw Normal View History

2023-05-09 16:18:10 +02:00
<.header>
Comment <%= @comment.id %>
<:subtitle>This is a comment record from your database.</:subtitle>
<:actions>
2023-06-11 20:49:18 +02:00
<.link href="#">
2023-05-09 16:18:10 +02:00
<.button>Approve note</.button>
</.link>
</:actions>
</.header>
<.list>
2023-05-09 16:24:46 +02:00
<:item title="Name"><%= @comment.author_name %></:item>
2023-05-09 16:18:10 +02:00
<:item title="Content"><%= @comment.content %></:item>
<:item title="Inserted at"><%= @comment.inserted_at %></:item>
<:item title="Approved at"><%= @comment.approved_at %></:item>
<:item title="Kind"><%= @comment.kind %></:item>
2023-05-09 16:24:46 +02:00
<:item title="Note">
2023-06-11 20:49:18 +02:00
<a href="#"><%= @comment.note.name %></a>
2023-05-09 16:24:46 +02:00
</:item>
2023-05-09 16:18:10 +02:00
</.list>
<.back navigate={~p"/admin/comments"}>Back to comments</.back>