Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSerth committed Oct 25, 2024
1 parent 3ce6ffb commit 16fecd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/request_for_comments/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
- output_runs.each do |testrun|
pre = testrun.log || t('request_for_comments.no_output')

- assess_runs = testruns.select {|run| run.cause == 'assess' }.sort_by {|run| [run.file&.filepath ? 0 : 1, run.file&.filepath]}
- assess_runs = testruns.select {|run| run.cause == 'assess' }.sort_by {|run| [run.file&.filepath ? 0 : 1, run.file&.filepath] }
- unless current_user.admin?
- assess_runs = assess_runs.select {|run| run.file.present? ? !run.file.hidden_feedback? : true }
- if assess_runs.size.positive?
Expand All @@ -55,11 +55,11 @@
- if testrun.passed
span.text-success
i.fa-solid.fa-circle-check.me-2 aria-hidden='true'
=> t('request_for_comments.passed') + ':'
=> "#{t('request_for_comments.passed')}:"
- else
span.text-danger
i.fa-solid.fa-circle-xmark.me-2 aria-hidden='true'
=> t('request_for_comments.failed') + ':'
=> "#{t('request_for_comments.failed')}:"
= testrun.file.filepath
.collapsed.testrun-output.text
span.fa-solid.fa-chevron-down.collapse-button
Expand Down

0 comments on commit 16fecd0

Please sign in to comment.