A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue