diff --git a/lib/chiya_web/controllers/comment_html/index.html.heex b/lib/chiya_web/controllers/comment_html/index.html.heex index 01f9447..f791e13 100644 --- a/lib/chiya_web/controllers/comment_html/index.html.heex +++ b/lib/chiya_web/controllers/comment_html/index.html.heex @@ -17,7 +17,7 @@ Delete - <:action :let={comment}> + <:action :let={comment}>
<.link navigate={~p"/admin/comments/#{comment}/approve"}>Approve
diff --git a/lib/chiya_web/controllers/comment_html/show.html.heex b/lib/chiya_web/controllers/comment_html/show.html.heex index bf98b2b..962d56e 100644 --- a/lib/chiya_web/controllers/comment_html/show.html.heex +++ b/lib/chiya_web/controllers/comment_html/show.html.heex @@ -9,12 +9,14 @@ <.list> - <:item title="Name"><%= @comment.author_name %> + <:item title="Name"><%= @comment.author_name %> <:item title="Content"><%= @comment.content %> <:item title="Inserted at"><%= @comment.inserted_at %> <:item title="Approved at"><%= @comment.approved_at %> <:item title="Kind"><%= @comment.kind %> - <:item title="Note"><%= @comment.note.name %> + <:item title="Note"> + <%= @comment.note.name %> + <.back navigate={~p"/admin/comments"}>Back to comments