diff options
author | James Lopez <james@jameslopez.es> | 2018-02-22 13:54:19 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-02-23 14:02:40 +0100 |
commit | 0767861bcdc62cedf374c6a4b53d8526efb4ff58 (patch) | |
tree | 3e6d866497ba45ac0cafcbf3963cf7f6979b4dfd /app/views/projects/diffs/_file.html.haml | |
parent | 228b757d29a141c4fda0e7c4be75784a6cefe427 (diff) | |
download | gitlab-ce-0767861bcdc62cedf374c6a4b53d8526efb4ff58.tar.gz |
refactor code based on feedback
Diffstat (limited to 'app/views/projects/diffs/_file.html.haml')
-rw-r--r-- | app/views/projects/diffs/_file.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_file.html.haml b/app/views/projects/diffs/_file.html.haml index 3e6001e6f30..47bfcb21cf4 100644 --- a/app/views/projects/diffs/_file.html.haml +++ b/app/views/projects/diffs/_file.html.haml @@ -17,7 +17,7 @@ \ - if editable_diff?(diff_file) - link_opts = @merge_request.persisted? ? { from_merge_request_iid: @merge_request.iid } : {} - = edit_blob_element(@merge_request.source_project, @merge_request.source_branch, diff_file.new_path, + = edit_blob_button(@merge_request.source_project, @merge_request.source_branch, diff_file.new_path, blob: blob, link_opts: link_opts) - if image_diff && image_replaced |