12 lines
614 B
Plaintext
12 lines
614 B
Plaintext
-# TODO: add fork suggestion (commits only)
|
|
|
|
%diff-file.rd-diff-file-component{ id: id, data: { testid: 'rd-diff-file', file_data: file_data.to_json } }
|
|
%article.rd-diff-file{ data: { virtual: virtual? }, style: ("--total-rows: #{total_rows}" if virtual?), aria: { labelledby: heading_id } }
|
|
= header || default_header
|
|
-# extra wrapper needed so hidden state doesn't require removing border or other styles
|
|
%details.rd-diff-file-details{ open: true, data: { file_body: '' } }
|
|
%summary>
|
|
.rd-diff-file-body
|
|
= render viewer_component.new(diff_file: @diff_file)
|
|
%diff-file-mounted
|