diff --git a/app/views/request_for_comments/_list_entry.html.slim b/app/views/request_for_comments/_list_entry.html.slim index 65c72bdb..6497ec89 100644 --- a/app/views/request_for_comments/_list_entry.html.slim +++ b/app/views/request_for_comments/_list_entry.html.slim @@ -2,8 +2,8 @@ tr.table-row-clickable data-id=request_for_comment.id data-href=request_for_comm td.p-2 - if request_for_comment.solved? span.fa-solid.fa-check.fa-2x.text-success aria-hidden='true' - - elsif request_for_comment.full_score_reached - span.fa-solid.fa-check.fa-2x.text-secondary-emphasis aria-hidden='true' + - elsif request_for_comment.full_score_reached? + span.fa-solid.fa-check.fa-2x.text-body-tertiary aria-hidden='true' - else = '' td.text-center = request_for_comment.comments.size diff --git a/app/views/request_for_comments/index.html.slim b/app/views/request_for_comments/index.html.slim index 3dbc56df..8cda8559 100644 --- a/app/views/request_for_comments/index.html.slim +++ b/app/views/request_for_comments/index.html.slim @@ -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) diff --git a/app/views/request_for_comments/show.html.slim b/app/views/request_for_comments/show.html.slim index 4c71f450..12a03bf7 100644 --- a/app/views/request_for_comments/show.html.slim +++ b/app/views/request_for_comments/show.html.slim @@ -1,7 +1,9 @@ .list-group h4#exercise_caption.list-group-item-heading data-exercise-id=@request_for_comment.exercise.id data-rfc-id=@request_for_comment.id - if @request_for_comment.solved? - span.fa-solid.fa-check.me-2 aria-hidden='true' + span.fa-solid.fa-check.text-success.me-2 aria-hidden='true' + - elsif @request_for_comment.full_score_reached? + span.fa-solid.fa-check.text-body-tertiary.me-2 aria-hidden='true' = link_to_if(policy(@request_for_comment.exercise).show?, @request_for_comment.exercise.title, [:implement, @request_for_comment.exercise]) p.list-group-item-text - user = @request_for_comment.user