Refactored task status into a view model

This commit is contained in:
2025-11-25 02:02:39 +02:00
parent 12e10e3afb
commit 5b1744a298
8 changed files with 65 additions and 36 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ h1= tasks_index_title
= link_to 'New', new_task_path(project: current_project&.code)
- if @tasks.exists?
table
table.tasks-table
thead
tbody
- @tasks.each do |task|
@@ -12,7 +12,7 @@ h1= tasks_index_title
tr
td= link_to task.full_number, task_path(task)
td
= task_status_selector task, selector_class: 'small', id: "task_status_selector_#{task.id}", with_form: true
= task_status_selector task, with_form: true
td= task.title
td
= link_to 'Edit', edit_task_path(task)