2016-08-08 15:46:00 -04:00
|
|
|
- page_title "Merge Conflicts", "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests"
|
2016-09-16 20:41:15 -04:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= page_specific_javascript_tag('lib/ace.js')
|
2017-06-13 18:12:31 -04:00
|
|
|
= render "projects/merge_requests/mr_title"
|
2016-08-01 10:22:26 -04:00
|
|
|
|
2016-08-02 07:51:43 -04:00
|
|
|
.merge-request-details.issuable-details
|
2017-06-13 18:12:31 -04:00
|
|
|
= render "projects/merge_requests/mr_box"
|
2016-08-01 10:22:26 -04:00
|
|
|
|
2016-08-02 07:51:43 -04:00
|
|
|
= render 'shared/issuable/sidebar', issuable: @merge_request
|
|
|
|
|
2017-06-29 13:06:35 -04:00
|
|
|
#conflicts{ "v-cloak" => "true", data: { conflicts_path: conflicts_project_merge_request_path(@merge_request.project, @merge_request, format: :json),
|
|
|
|
resolve_conflicts_path: resolve_conflicts_project_merge_request_path(@merge_request.project, @merge_request) } }
|
2016-12-26 05:47:16 -05:00
|
|
|
.loading{ "v-if" => "isLoading" }
|
2016-08-01 10:22:26 -04:00
|
|
|
%i.fa.fa-spinner.fa-spin
|
|
|
|
|
2016-12-26 05:47:16 -05:00
|
|
|
.nothing-here-block{ "v-if" => "hasError" }
|
2016-08-10 23:38:08 -04:00
|
|
|
{{conflictsData.errorMessage}}
|
2016-08-02 07:51:43 -04:00
|
|
|
|
2016-08-10 23:38:08 -04:00
|
|
|
= render partial: "projects/merge_requests/conflicts/commit_stats"
|
2016-08-08 14:33:59 -04:00
|
|
|
|
2016-12-26 05:47:16 -05:00
|
|
|
.files-wrapper{ "v-if" => "!isLoading && !hasError" }
|
2016-09-30 18:42:36 -04:00
|
|
|
.files
|
2016-12-26 05:47:16 -05:00
|
|
|
.diff-file.file-holder.conflict{ "v-for" => "file in conflictsData.files" }
|
2017-02-05 17:28:48 -05:00
|
|
|
.js-file-title.file-title
|
2016-12-26 05:47:16 -05:00
|
|
|
%i.fa.fa-fw{ ":class" => "file.iconClass" }
|
2016-09-30 18:42:36 -04:00
|
|
|
%strong {{file.filePath}}
|
|
|
|
= render partial: 'projects/merge_requests/conflicts/file_actions'
|
|
|
|
.diff-content.diff-wrap-lines
|
2016-12-26 05:47:16 -05:00
|
|
|
.diff-wrap-lines.code.file-content.js-syntax-highlight{ "v-show" => "!isParallel && file.resolveMode === 'interactive' && file.type === 'text'" }
|
2016-10-05 08:57:22 -04:00
|
|
|
= render partial: "projects/merge_requests/conflicts/components/inline_conflict_lines"
|
2016-12-26 05:47:16 -05:00
|
|
|
.diff-wrap-lines.code.file-content.js-syntax-highlight{ "v-show" => "isParallel && file.resolveMode === 'interactive' && file.type === 'text'" }
|
2016-11-09 15:17:49 -05:00
|
|
|
%parallel-conflict-lines{ ":file" => "file" }
|
2016-12-26 05:47:16 -05:00
|
|
|
%div{ "v-show" => "file.resolveMode === 'edit' || file.type === 'text-editor'" }
|
2016-10-05 08:57:22 -04:00
|
|
|
= render partial: "projects/merge_requests/conflicts/components/diff_file_editor"
|
2016-09-30 18:42:36 -04:00
|
|
|
|
2016-08-10 23:38:08 -04:00
|
|
|
= render partial: "projects/merge_requests/conflicts/submit_form"
|