debian-mirror-gitlab/app/views/projects/diffs/_content.html.haml

13 lines
604 B
Text
Raw Normal View History

2022-01-26 12:08:38 +05:30
- diff_file = local_assigns.fetch(:diff_file, nil)
2022-05-07 20:08:51 +05:30
- file_hash = hexdigest(diff_file.file_path)
2023-06-20 00:43:36 +05:30
.diff-content.gl-rounded-bottom-base
2022-05-07 20:08:51 +05:30
- if diff_file.has_renderable?
2022-08-13 15:12:31 +05:30
.hidden{ id: "#raw-diff-#{file_hash}", data: { file_hash: file_hash, diff_toggle_entity: 'rawViewer' } }
2022-05-07 20:08:51 +05:30
= render 'projects/diffs/viewer', viewer: diff_file.viewer
2022-08-13 15:12:31 +05:30
%div{ id: "#rendered-diff-#{file_hash}", data: { file_hash: file_hash, diff_toggle_entity: 'renderedViewer' } }
2022-05-07 20:08:51 +05:30
= render 'projects/diffs/viewer', viewer: diff_file.rendered.viewer
- else
= render 'projects/diffs/viewer', viewer: diff_file.viewer