Workflow display styling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
div.workflow class=color title=name
|
||||
= image_tag(icon)
|
||||
- if full
|
||||
span= name
|
||||
Reference in New Issue
Block a user