.header>
<.icon name="hero-document-text" /> Notes
<:subtitle>Notes are the content, the heart of your site.
<:actions>
<.link href={~p"/admin/notes/new"}>
<.button><.icon name="hero-plus-small" /> New Note
<.link href={~p"/admin/notes/import"}>
<.button><.icon name="hero-arrow-down-tray" /> Import Note
<.table id="notes" rows={@notes} row_click={&JS.navigate(~p"/admin/notes/#{&1}")}>
<:col :let={note} label="Name"><%= note.name %>
<:col :let={note} label="Updated at"><%= from_now(note.updated_at) %>
<:col :let={note} label="Published at"><%= from_now(note.published_at) %>
<.filter_form fields={[:name]} meta={@meta} id="user-filter-form" />
<:col :let={note} label="Name" field={:name}><%= note.name %>
<:col :let={note} label="Updated at" field={:updated_at}><%= from_now(note.updated_at) %>
<:col :let={note} label="Published at" field={:published_at}>
<%= from_now(note.published_at) %>