2016-09-13 17:45:13 +05:30
|
|
|
- page_title "Merge Conflicts", "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests"
|
2016-11-03 12:29:30 +05:30
|
|
|
- content_for :page_specific_javascripts do
|
2017-08-17 22:00:37 +05:30
|
|
|
= page_specific_javascript_bundle_tag('common_vue')
|
|
|
|
= page_specific_javascript_bundle_tag('merge_conflicts')
|
2016-11-03 12:29:30 +05:30
|
|
|
= page_specific_javascript_tag('lib/ace.js')
|
2016-09-13 17:45:13 +05:30
|
|
|
= render "projects/merge_requests/show/mr_title"
|
|
|
|
|
|
|
|
.merge-request-details.issuable-details
|
|
|
|
= render "projects/merge_requests/show/mr_box"
|
|
|
|
|
|
|
|
= render 'shared/issuable/sidebar', issuable: @merge_request
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
#conflicts{ "v-cloak" => "true", data: { conflicts_path: conflicts_namespace_project_merge_request_path(@merge_request.project.namespace, @merge_request.project, @merge_request, format: :json),
|
2016-09-13 17:45:13 +05:30
|
|
|
resolve_conflicts_path: resolve_conflicts_namespace_project_merge_request_path(@merge_request.project.namespace, @merge_request.project, @merge_request) } }
|
2017-08-17 22:00:37 +05:30
|
|
|
.loading{ "v-if" => "isLoading" }
|
2016-09-13 17:45:13 +05:30
|
|
|
%i.fa.fa-spinner.fa-spin
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.nothing-here-block{ "v-if" => "hasError" }
|
2016-09-13 17:45:13 +05:30
|
|
|
{{conflictsData.errorMessage}}
|
|
|
|
|
|
|
|
= render partial: "projects/merge_requests/conflicts/commit_stats"
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.files-wrapper{ "v-if" => "!isLoading && !hasError" }
|
2016-11-03 12:29:30 +05:30
|
|
|
.files
|
2017-08-17 22:00:37 +05:30
|
|
|
.diff-file.file-holder.conflict{ "v-for" => "file in conflictsData.files" }
|
|
|
|
.js-file-title.file-title
|
|
|
|
%i.fa.fa-fw{ ":class" => "file.iconClass" }
|
2016-11-03 12:29:30 +05:30
|
|
|
%strong {{file.filePath}}
|
|
|
|
= render partial: 'projects/merge_requests/conflicts/file_actions'
|
|
|
|
.diff-content.diff-wrap-lines
|
2017-08-17 22:00:37 +05:30
|
|
|
.diff-wrap-lines.code.file-content.js-syntax-highlight{ "v-show" => "!isParallel && file.resolveMode === 'interactive' && file.type === 'text'" }
|
2016-11-03 12:29:30 +05:30
|
|
|
= render partial: "projects/merge_requests/conflicts/components/inline_conflict_lines"
|
2017-08-17 22:00:37 +05:30
|
|
|
.diff-wrap-lines.code.file-content.js-syntax-highlight{ "v-show" => "isParallel && file.resolveMode === 'interactive' && file.type === 'text'" }
|
|
|
|
%parallel-conflict-lines{ ":file" => "file" }
|
|
|
|
%div{ "v-show" => "file.resolveMode === 'edit' || file.type === 'text-editor'" }
|
2016-11-03 12:29:30 +05:30
|
|
|
= render partial: "projects/merge_requests/conflicts/components/diff_file_editor"
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
= render partial: "projects/merge_requests/conflicts/submit_form"
|