ee cummings this shit

This commit is contained in:
2022-11-17 22:30:01 -05:00
parent 821a8e223c
commit f1889aec07
36 changed files with 177 additions and 176 deletions

View File

@ -32,7 +32,7 @@ defmodule MemexWeb.PipelineLive.FormComponent do
{:ok, _pipeline} ->
{:noreply,
socket
|> put_flash(:info, "Pipeline updated successfully")
|> put_flash(:info, "pipeline updated successfully")
|> push_navigate(to: socket.assigns.return_to)}
{:error, %Ecto.Changeset{} = changeset} ->
@ -45,7 +45,7 @@ defmodule MemexWeb.PipelineLive.FormComponent do
{:ok, _pipeline} ->
{:noreply,
socket
|> put_flash(:info, "Pipeline created successfully")
|> put_flash(:info, "pipeline created successfully")
|> push_navigate(to: socket.assigns.return_to)}
{:error, %Ecto.Changeset{} = changeset} ->

View File

@ -16,19 +16,19 @@ defmodule MemexWeb.PipelineLive.Index do
defp apply_action(socket, :edit, %{"id" => id}) do
socket
|> assign(:page_title, "Edit Pipeline")
|> assign(:page_title, "edit pipeline")
|> assign(:pipeline, Pipelines.get_pipeline!(id))
end
defp apply_action(socket, :new, _params) do
socket
|> assign(:page_title, "New Pipeline")
|> assign(:page_title, "new Pipeline")
|> assign(:pipeline, %Pipeline{})
end
defp apply_action(socket, :index, _params) do
socket
|> assign(:page_title, "Listing Pipelines")
|> assign(:page_title, "listing pipelines")
|> assign(:pipeline, nil)
end

View File

@ -1,4 +1,4 @@
<h1>Listing Pipelines</h1>
<h1>listing pipelines</h1>
<%= if @live_action in [:new, :edit] do %>
<.modal return_to={Routes.pipeline_index_path(@socket, :index)}>
@ -33,12 +33,12 @@
<td>
<span>
<.link navigate={Routes.pipeline_show_path(@socket, :show, pipeline)}>
<%= dgettext("actions", "Show") %>
<%= dgettext("actions", "show") %>
</.link>
</span>
<span>
<.link patch={Routes.pipeline_index_path(@socket, :edit, pipeline)}>
<%= dgettext("actions", "Edit") %>
<%= dgettext("actions", "edit") %>
</.link>
</span>
<span>
@ -46,9 +46,9 @@
href="#"
phx-click="delete"
phx-value-id={pipeline.id}
data-confirm={dgettext("prompts", "Are you sure?")}
data-confirm={dgettext("prompts", "are you sure?")}
>
<%= dgettext("actions", "Delete") %>
<%= dgettext("actions", "delete") %>
</.link>
</span>
</td>
@ -59,6 +59,6 @@
<span>
<.link patch={Routes.pipeline_index_path(@socket, :new)}>
<%= dgettext("actions", "New Pipeline") %>
<%= dgettext("actions", "new pipeline") %>
</.link>
</span>

View File

@ -16,6 +16,6 @@ defmodule MemexWeb.PipelineLive.Show do
|> assign(:pipeline, Pipelines.get_pipeline!(id))}
end
defp page_title(:show), do: "Show Pipeline"
defp page_title(:edit), do: "Edit Pipeline"
defp page_title(:show), do: "show pipeline"
defp page_title(:edit), do: "edit pipeline"
end

View File

@ -1,4 +1,4 @@
<h1>Show Pipeline</h1>
<h1>show pipeline</h1>
<%= if @live_action in [:edit] do %>
<.modal return_to={Routes.pipeline_show_path(@socket, :show, @pipeline)}>
@ -32,7 +32,7 @@
<span>
<.link patch={Routes.pipeline_show_path(@socket, :edit, @pipeline)} class="button">
<%= dgettext("actions", "Edit") %>
<%= dgettext("actions", "edit") %>
</.link>
</span>
|