2016-09-13 17:45:13 +05:30
|
|
|
.diff-file.file-holder{id: "diff-#{index}", data: diff_file_html_data(project, diff_file.file_path, diff_commit.id)}
|
2016-01-29 22:53:50 +05:30
|
|
|
.file-title{id: "file-path-#{hexdigest(diff_file.file_path)}"}
|
2016-09-13 17:45:13 +05:30
|
|
|
= render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_commit, project: project, url: "#diff-#{index}"
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
- unless diff_file.submodule?
|
2016-01-29 22:53:50 +05:30
|
|
|
.file-actions.hidden-xs
|
2016-01-14 18:37:52 +05:30
|
|
|
- if blob_text_viewable?(blob)
|
2016-06-02 11:05:42 +05:30
|
|
|
= link_to '#', class: 'js-toggle-diff-comments btn active has-tooltip btn-file-option', title: "Toggle comments for this file" do
|
|
|
|
= icon('comment')
|
2016-01-29 22:53:50 +05:30
|
|
|
\
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
- if editable_diff?(diff_file)
|
|
|
|
- link_opts = @merge_request.id ? { from_merge_request_id: @merge_request.id } : {}
|
|
|
|
= edit_blob_link(@merge_request.source_project, @merge_request.source_branch, diff_file.new_path,
|
|
|
|
blob: blob, link_opts: link_opts)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
= view_file_btn(diff_commit.id, diff_file.new_path, project)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
= render 'projects/diffs/content', diff_file: diff_file, diff_commit: diff_commit, blob: blob, project: project
|