Task status badge and index

This commit is contained in:
2025-10-30 02:23:05 +02:00
parent ba2aad93af
commit 8bb22f8e04
6 changed files with 51 additions and 3 deletions
+7
View File
@@ -8,4 +8,11 @@ module TasksHelper
'Tasks'
end
# @param status [TaskStatus]
def task_status_badge(status)
# TODO: extract into a component probably
content_tag(:span, status.name, class: ['badge', 'task-status', status.category.dasherize])
end
end