Listing Notes

<%= if @live_action in [:new, :edit] do %> <.modal return_to={Routes.note_index_path(@socket, :index)}> <.live_component module={MemexWeb.NoteLive.FormComponent} id={@note.id || :new} title={@page_title} action={@live_action} note={@note} return_to={Routes.note_index_path(@socket, :index)} /> <% end %> <%= for note <- @notes do %> <% end %>
Title Content Tag Visibility
<%= note.title %> <%= note.content %> <%= note.tag %> <%= note.visibility %> <.link navigate={Routes.note_show_path(@socket, :show, note)}> <%= dgettext("actions", "Show") %> <.link patch={Routes.note_index_path(@socket, :edit, note)}> <%= dgettext("actions", "Edit") %> <.link href="#" phx-click="delete" phx-value-id={note.id} data-confirm={dgettext("prompts", "Are you sure?")} > <%= dgettext("actions", "Delete") %>
<.link patch={Routes.note_index_path(@socket, :new)}> <%= dgettext("actions", "New Note") %>