Workflow statuses editing
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
module ProjectAdmin::Workflows::StatusesHelper
|
||||
end
|
||||
@@ -12,4 +12,12 @@ module TasksHelper
|
||||
def task_status_selector(task, with_form: false)
|
||||
render Tasks::Statuses::SelectorViewModel.new(task, with_form:)
|
||||
end
|
||||
|
||||
# TODO: move into another helper?
|
||||
def task_status_badge(status)
|
||||
content_tag(
|
||||
:span, mask_icon(Tasks::Statuses::SelectorViewModel.icon(status)) + status.name,
|
||||
class: ['badge', 'task-status', status.color]
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user