GUI overhaul
Some checks failed
/ Run tests (push) Successful in 1m38s
/ Run system tests (push) Failing after 1m37s
/ Build, push and deploy image (push) Successful in 1m49s

This commit is contained in:
david 2024-11-07 01:24:55 +01:00
parent e9743cd00c
commit 0198a22278
14 changed files with 209 additions and 65 deletions

View file

@ -13,6 +13,19 @@ module SuccessCriteriaHelper
end
end
def success_criterion_result_color_classes(sc)
if sc.passed?
"success"
elsif sc.failed?
"danger"
elsif sc.not_applicable?
"muted"
else
"warning"
end
end
def success_criterion_edit_button(success_criterion, edit_mode)
path = if success_criterion.persisted?
if edit_mode