Skip to content

Commit

Permalink
Swap the source and the target file link addresses
Browse files Browse the repository at this point in the history
Fixes #15695
  • Loading branch information
danidoni committed Mar 20, 2024
1 parent 5bf1b68 commit 9546d0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/app/components/diff_component.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
%div{ class: "line #{line.state}" }>
- case line.state
- when 'range'
- if source_file
= link_to(source_file, title: 'See original file') do
- if target_file
= link_to(target_file, title: 'See original file') do
.number.p-0.text-center.link-danger<
%i.fas.fa-file-arrow-down
- else
%a
.number
- if target_file
= link_to(target_file, title: 'See submitted file') do
- if source_file
= link_to(source_file, title: 'See submitted file') do
.number.p-0.text-center.link-success<
%i.fas.fa-file-arrow-up
- else
Expand Down

0 comments on commit 9546d0a

Please sign in to comment.