Workflow display styling

This commit is contained in:
2026-03-21 19:57:01 +02:00
parent eb9f3e982c
commit 72af5a0610
8 changed files with 75 additions and 7 deletions
+1 -6
View File
@@ -1,11 +1,6 @@
- cache task do
tr id="task_#{task.id}"
td
/ TODO: extract into a presenter (and especially add color)
- wf_icon = 'task_line'
- if task.workflow.icon == 'warning'
- wf_icon = 'warning_line'
= image_tag("mingcute/#{wf_icon}.svg", title: task.workflow.name)
td= workflow_display task.workflow
td= link_to task.full_number, task_path(task)
td
= task_status_selector task, with_form: true
+1
View File
@@ -3,6 +3,7 @@ div
h1= @task.title
section.task-show-info
= workflow_display @task.workflow, full: true
= task_status_selector @task, with_form: true
= turbo_stream_from @task, :status, :with_form
+4
View File
@@ -0,0 +1,4 @@
div.workflow class=color title=name
= image_tag(icon)
- if full
span= name