ee cummings this shit
This commit is contained in:
@ -32,7 +32,7 @@ defmodule MemexWeb.ContextLive.FormComponent do
|
||||
{:ok, _context} ->
|
||||
{:noreply,
|
||||
socket
|
||||
|> put_flash(:info, "Context updated successfully")
|
||||
|> put_flash(:info, "context updated successfully")
|
||||
|> push_navigate(to: socket.assigns.return_to)}
|
||||
|
||||
{:error, %Ecto.Changeset{} = changeset} ->
|
||||
@ -45,7 +45,7 @@ defmodule MemexWeb.ContextLive.FormComponent do
|
||||
{:ok, _context} ->
|
||||
{:noreply,
|
||||
socket
|
||||
|> put_flash(:info, "Context created successfully")
|
||||
|> put_flash(:info, "context created successfully")
|
||||
|> push_navigate(to: socket.assigns.return_to)}
|
||||
|
||||
{:error, %Ecto.Changeset{} = changeset} ->
|
||||
|
@ -16,19 +16,19 @@ defmodule MemexWeb.ContextLive.Index do
|
||||
|
||||
defp apply_action(socket, :edit, %{"id" => id}) do
|
||||
socket
|
||||
|> assign(:page_title, "Edit Context")
|
||||
|> assign(:page_title, "edit context")
|
||||
|> assign(:context, Contexts.get_context!(id))
|
||||
end
|
||||
|
||||
defp apply_action(socket, :new, _params) do
|
||||
socket
|
||||
|> assign(:page_title, "New Context")
|
||||
|> assign(:page_title, "new context")
|
||||
|> assign(:context, %Context{})
|
||||
end
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, "Listing Contexts")
|
||||
|> assign(:page_title, "listing contexts")
|
||||
|> assign(:context, nil)
|
||||
end
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<h1>Listing Contexts</h1>
|
||||
<h1>listing contexts</h1>
|
||||
|
||||
<%= if @live_action in [:new, :edit] do %>
|
||||
<.modal return_to={Routes.context_index_path(@socket, :index)}>
|
||||
@ -35,12 +35,12 @@
|
||||
<td>
|
||||
<span>
|
||||
<.link navigate={Routes.context_show_path(@socket, :show, context)}>
|
||||
<%= dgettext("actions", "Show") %>
|
||||
<%= dgettext("actions", "show") %>
|
||||
</.link>
|
||||
</span>
|
||||
<span>
|
||||
<.link patch={Routes.context_index_path(@socket, :edit, context)}>
|
||||
<%= dgettext("actions", "Edit") %>
|
||||
<%= dgettext("actions", "edit") %>
|
||||
</.link>
|
||||
</span>
|
||||
<span>
|
||||
@ -48,9 +48,9 @@
|
||||
href="#"
|
||||
phx-click="delete"
|
||||
phx-value-id={context.id}
|
||||
data-confirm={dgettext("prompts", "Are you sure?")}
|
||||
data-confirm={dgettext("prompts", "are you sure?")}
|
||||
>
|
||||
<%= dgettext("actions", "Delete") %>
|
||||
<%= dgettext("actions", "delete") %>
|
||||
</.link>
|
||||
</span>
|
||||
</td>
|
||||
@ -61,6 +61,6 @@
|
||||
|
||||
<span>
|
||||
<.link patch={Routes.context_index_path(@socket, :new)}>
|
||||
<%= dgettext("actions", "New Context") %>
|
||||
<%= dgettext("actions", "new context") %>
|
||||
</.link>
|
||||
</span>
|
||||
|
@ -16,6 +16,6 @@ defmodule MemexWeb.ContextLive.Show do
|
||||
|> assign(:context, Contexts.get_context!(id))}
|
||||
end
|
||||
|
||||
defp page_title(:show), do: "Show Context"
|
||||
defp page_title(:edit), do: "Edit Context"
|
||||
defp page_title(:show), do: "show context"
|
||||
defp page_title(:edit), do: "edit context"
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
<h1>Show Context</h1>
|
||||
<h1>show context</h1>
|
||||
|
||||
<%= if @live_action in [:edit] do %>
|
||||
<.modal return_to={Routes.context_show_path(@socket, :show, @context)}>
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
<span>
|
||||
<.link patch={Routes.context_show_path(@socket, :edit, @context)} class="button">
|
||||
<%= dgettext("actions", "Edit") %>
|
||||
<%= dgettext("actions", "edit") %>
|
||||
</.link>
|
||||
</span>
|
||||
|
|
||||
|
Reference in New Issue
Block a user