Skip to content

Commit

Permalink
adding new status column to automated workflow executions table
Browse files Browse the repository at this point in the history
  • Loading branch information
ksierks committed Oct 18, 2024
1 parent dfc6ab2 commit 4b6a918
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
<td class="px-6 py-4 whitespace-nowrap">
<%= local_time_ago(automated_workflow_execution["updated_at"]) %>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<% if automated_workflow_execution["disabled"] %>
<%= viral_pill(text: "DISABLED", color: "red") %>
<% else %>
<%= viral_pill(text: "ENABLED", color: "green") %>
<% end %>
</td>
<td
class="
px-6 py-4 space-x-2 whitespace-nowrap sticky right-0 bg-white dark:bg-slate-800
Expand Down
99 changes: 46 additions & 53 deletions app/views/projects/automated_workflow_executions/_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,70 +2,63 @@
<table
id="automated_workflow_executions"
class="
w-full
text-sm
text-left
rtl:text-right
text-slate-500
dark:text-slate-400
dark:divide-slate-600
whitespace-nowrap
"
w-full text-sm text-left rtl:text-right text-slate-500 dark:text-slate-400
dark:divide-slate-600 whitespace-nowrap
"
>
<thead
class="
text-slate-700
uppercase
bg-slate-50
dark:bg-slate-700
dark:text-slate-400
whitespace-nowrap
"
text-slate-700 uppercase bg-slate-50 dark:bg-slate-700 dark:text-slate-400
whitespace-nowrap
"
>
<tr>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left sticky left-0
bg-slate-50
dark:bg-slate-700">
<%= t(:".headers.id") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.name") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.workflow_name") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.workflow_version") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.created_at") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.updated_at") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left sticky right-0">
<%= t(:".headers.actions") %>
</th>
</tr>
<tr>
<th
scope="col"
class="
px-6 py-3 whitespace-nowrap text-left sticky left-0 bg-slate-50
dark:bg-slate-700
"
>
<%= t(:".headers.id") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.name") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.workflow_name") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.workflow_version") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.created_at") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.updated_at") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left">
<%= t(:".headers.status") %>
</th>
<th scope="col" class="px-6 py-3 whitespace-nowrap text-left sticky right-0">
<%= t(:".headers.actions") %>
</th>
</tr>
</thead>
<tbody
class="
bg-white
divide-y
divide-slate-200
dark:bg-slate-800
dark:divide-slate-700
"
bg-white divide-y divide-slate-200 dark:bg-slate-800 dark:divide-slate-700
"
>
<%= render partial: "automated_workflow_execution",
collection: @automated_workflow_executions %>
<%= render partial: "automated_workflow_execution",
collection: @automated_workflow_executions %>
</tbody>
</table>
<div class="empty_state_message">
<%= viral_empty(
title: t(:".empty.title"),
description: t(:".empty.description"),
icon_name: :document_text
) %>
title: t(:".empty.title"),
description: t(:".empty.description"),
icon_name: :document_text,
) %>
</div>
</div>
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@ en:
created_at: Created
id: ID
name: Name
status: Status
updated_at: Updated
workflow_name: Workflow Name
workflow_version: Workflow Version
Expand Down
1 change: 1 addition & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@ fr:
created_at: Created
id: ID
name: Name
status: Status
updated_at: Updated
workflow_name: Workflow Name
workflow_version: Workflow Version
Expand Down

0 comments on commit 4b6a918

Please sign in to comment.