2016-06-20 12:54:53 -04:00
|
|
|
.diff-file.file-holder{id: "diff-#{i}", data: diff_file_html_data(project, diff_file)}
|
2016-01-21 16:46:49 -05:00
|
|
|
.file-title{id: "file-path-#{hexdigest(diff_file.file_path)}"}
|
2016-06-20 12:57:10 -04:00
|
|
|
= render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_commit, project: project, url: "#diff-#{i}"
|
2014-09-08 09:26:49 -04:00
|
|
|
|
2016-06-20 12:57:10 -04:00
|
|
|
- unless diff_file.submodule?
|
2016-01-21 16:46:49 -05:00
|
|
|
.file-actions.hidden-xs
|
2015-12-18 10:14:12 -05:00
|
|
|
- if blob_text_viewable?(blob)
|
2016-04-01 15:27:39 -04:00
|
|
|
= link_to '#', class: 'js-toggle-diff-comments btn active has-tooltip btn-file-option', title: "Toggle comments for this file" do
|
2016-03-31 14:37:27 -04:00
|
|
|
= icon('comment')
|
2016-01-21 16:46:49 -05:00
|
|
|
\
|
2014-09-08 09:26:49 -04:00
|
|
|
|
2016-07-30 00:04:04 -04:00
|
|
|
- if editable_diff?(diff_file)
|
|
|
|
= edit_blob_link(@merge_request.source_project,
|
|
|
|
@merge_request.source_branch, diff_file.new_path,
|
|
|
|
from_merge_request_id: @merge_request.id,
|
|
|
|
skip_visible_check: true)
|
2014-09-08 09:26:49 -04:00
|
|
|
|
2015-09-30 06:31:02 -04:00
|
|
|
= view_file_btn(diff_commit.id, diff_file, project)
|
2014-09-08 09:26:49 -04:00
|
|
|
|
2016-07-06 07:36:39 -04:00
|
|
|
= render 'projects/diffs/content', diff_file: diff_file, diff_commit: diff_commit, diff_refs: diff_refs, blob: blob, project: project
|