<%= @pipeline.title %>

<%= if @pipeline.tags, do: @pipeline.tags |> Enum.join(", ") %>

<%= gettext("Visibility: %{visibility}", visibility: @pipeline.visibility) %>

<.link class="btn btn-primary" navigate={Routes.pipeline_index_path(@socket, :index)}> <%= dgettext("actions", "back") %> <%= if is_owner?(@pipeline, @current_user) do %> <.link class="btn btn-primary" patch={Routes.pipeline_show_path(@socket, :edit, @pipeline)}> <%= dgettext("actions", "edit") %> <% end %> <%= if is_owner_or_admin?(@pipeline, @current_user) do %> <% end %>
<%= if @live_action in [:edit] do %> <.modal return_to={Routes.pipeline_show_path(@socket, :show, @pipeline)}> <.live_component module={MemexWeb.PipelineLive.FormComponent} id={@pipeline.id} current_user={@current_user} title={@page_title} action={@live_action} pipeline={@pipeline} return_to={Routes.pipeline_show_path(@socket, :show, @pipeline)} /> <% end %>