Improve visual difference for solved and soft-solved RfCs

This commit is contained in:
Sebastian Serth
2024-04-18 10:03:32 +02:00
committed by Dominic Sauer
parent 7cc4fb00c6
commit dd7b09e1e3
3 changed files with 8 additions and 6 deletions

View File

@@ -35,10 +35,10 @@ h1 = RequestForComment.model_name.human(count: 2)
tr data-id=request_for_comment.id
- if request_for_comment.solved?
td
span.fa-solid.fa-check aria-hidden='true'
- elsif request_for_comment.full_score_reached
span.fa-solid.fa-check.text-success aria-hidden='true'
- elsif request_for_comment.full_score_reached?
td
span.fa-solid.fa-check.text-secondary-emphasis aria-hidden='true'
span.fa-solid.fa-check.text-body-tertiary aria-hidden='true'
- else
td = ''
td = link_to_if(policy(request_for_comment).show?, request_for_comment.submission.exercise.title, request_for_comment)