listing contexts

<%= if @live_action in [:new, :edit] do %> <.modal return_to={Routes.context_index_path(@socket, :index)}> <.live_component module={MemexWeb.ContextLive.FormComponent} id={@context.id || :new} title={@page_title} action={@live_action} context={@context} return_to={Routes.context_index_path(@socket, :index)} /> <% end %> <%= for context <- @contexts do %> <% end %>
Title Content Tag Visibility
<%= context.title %> <%= context.content %> <%= context.tag %> <%= context.visibility %> <.link navigate={Routes.context_show_path(@socket, :show, context)}> <%= dgettext("actions", "show") %> <.link patch={Routes.context_index_path(@socket, :edit, context)}> <%= dgettext("actions", "edit") %> <.link href="#" phx-click="delete" phx-value-id={context.id} data-confirm={dgettext("prompts", "are you sure?")} > <%= dgettext("actions", "delete") %>
<.link patch={Routes.context_index_path(@socket, :new)}> <%= dgettext("actions", "new context") %>