<%= Markdown.render(@note.content) |> raw %>
<%= if !Enum.empty?(@note.images) do %>
<.line />
<%= for image <- @note.images do %>
<% end %>
<% end %>
<%= if not Enum.empty?(@note.comments) do %>
<.line />
<%= Enum.count(@note.comments) %> Comments
<% end %>
<.line />
<.simple_form :let={f} for={@changeset} action={~p"/#{@note.slug}/comment"}>
<.error :if={@changeset.action}>
Oops, something went wrong! Please check the errors below.
<.input field={f[:author_name]} type="text" placeholder="Name" />
<.input field={f[:content]} type="textarea" placeholder="Content" rows="3" />
<.input field={f[:note_id]} type="hidden" />
<:actions>
<.button>Submit Comment