From cf32020017303199cf36746e74af513ebce5795c Mon Sep 17 00:00:00 2001 From: Katherine Thiessen Date: Fri, 1 Nov 2024 08:57:45 -0500 Subject: [PATCH] removing edit link if disabled --- .../_automated_workflow_execution.html.erb | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/app/views/projects/automated_workflow_executions/_automated_workflow_execution.html.erb b/app/views/projects/automated_workflow_executions/_automated_workflow_execution.html.erb index f0215b6182..4016272c4c 100644 --- a/app/views/projects/automated_workflow_executions/_automated_workflow_execution.html.erb +++ b/app/views/projects/automated_workflow_executions/_automated_workflow_execution.html.erb @@ -55,18 +55,20 @@ class: "font-medium text-blue-600 underline dark:text-blue-500 hover:no-underline cursor-pointer", ) %> - <%= link_to_if !automated_workflow_execution.disabled, - t(:"projects.automated_workflow_executions.actions.edit_button"), - edit_namespace_project_automated_workflow_execution_path( - @project.parent, - @project, - automated_workflow_execution, - ), - data: { - turbo_stream: true, - }, - class: - "font-medium text-blue-600 underline dark:text-blue-500 hover:no-underline cursor-pointer" %> - + <% unless automated_workflow_execution.disabled %> + <%= link_to( + t(:"projects.automated_workflow_executions.actions.edit_button"), + edit_namespace_project_automated_workflow_execution_path( + @project.parent, + @project, + automated_workflow_execution, + ), + data: { + turbo_stream: true, + }, + class: + "font-medium text-blue-600 underline dark:text-blue-500 hover:no-underline cursor-pointer", + ) %> + <% end %>