A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -1,13 +1,15 @@
# frozen_string_literal: true
module SuccessCriteriaHelper
def success_criterion_result_icon_classes(sc)
if sc.passed?
'bi bi-check text-success'
"bi bi-check text-success"
elsif sc.failed?
'bi bi-exclamation-lg text-danger'
"bi bi-exclamation-lg text-danger"
elsif sc.not_applicable?
'bi bi-dash text-muted'
"bi bi-dash text-muted"
else
'bi bi-question text-warning'
"bi bi-question text-warning"
end
end
@ -16,13 +18,13 @@ module SuccessCriteriaHelper
if edit_mode
success_criterion
else
[:edit,
success_criterion]
[ :edit,
success_criterion ]
end
else
else
success_criterion.element
end
link_to tag.i(class: 'bi bi-pencil'),
end
link_to tag.i(class: "bi bi-pencil"),
path,
class: "btn btn-#{edit_mode ? 'link text-warning' : 'link text-secondary'}"
end