2016-08-01 10:22:26 -04:00
|
|
|
- page_title "Merge Conflicts", "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests"
|
|
|
|
|
|
|
|
= render "projects/merge_requests/show/mr_title"
|
|
|
|
|
2016-08-02 07:51:43 -04:00
|
|
|
.merge-request-details.issuable-details
|
2016-08-01 10:22:26 -04:00
|
|
|
= render "projects/merge_requests/show/mr_box"
|
|
|
|
|
2016-08-02 07:51:43 -04:00
|
|
|
= render 'shared/issuable/sidebar', issuable: @merge_request
|
|
|
|
|
2016-08-02 16:10:18 -04:00
|
|
|
#conflicts{"v-cloak" => "true"}
|
2016-08-02 07:51:43 -04:00
|
|
|
.loading{"v-if" => "isLoading"}
|
2016-08-01 10:22:26 -04:00
|
|
|
%i.fa.fa-spinner.fa-spin
|
|
|
|
|
2016-08-02 07:51:43 -04:00
|
|
|
.content-block.oneline-block{"v-if" => "hasError"}
|
|
|
|
%p {{conflictsData.errorMessage}}
|
|
|
|
|
|
|
|
.content-block.oneline-block.files-changed{"v-if" => "!isLoading && !hasError"}
|
2016-08-01 10:22:26 -04:00
|
|
|
.inline-parallel-buttons
|
|
|
|
.btn-group
|
|
|
|
%a.btn{ |
|
|
|
|
":class" => "{'active': !isParallel}", |
|
|
|
|
"@click" => "handleViewTypeChange('inline')"}
|
|
|
|
Inline
|
|
|
|
%a.btn{ |
|
|
|
|
":class" => "{'active': isParallel}", |
|
|
|
|
"@click" => "handleViewTypeChange('parallel')"}
|
|
|
|
Side-by-side
|
|
|
|
|
|
|
|
.js-toggle-container
|
|
|
|
.commit-stat-summary
|
|
|
|
Showing
|
|
|
|
%strong.cred {{conflictsCount}} conflicts
|
|
|
|
for
|
|
|
|
%strong {{conflictsData.source_branch}}
|
|
|
|
into
|
|
|
|
%strong {{conflictsData.target_branch}}
|
|
|
|
|
2016-08-02 07:51:43 -04:00
|
|
|
.files-wrapper{"v-if" => "!isLoading && !hasError"}
|
2016-08-03 16:22:58 -04:00
|
|
|
.files{"v-show" => "isParallel"}
|
2016-08-01 10:22:26 -04:00
|
|
|
.diff-file.file-holder.conflict.parallel-view{"v-for" => "file in conflictsData.files"}
|
|
|
|
.file-title
|
2016-08-03 14:28:22 -04:00
|
|
|
%i.fa.fa-fw.fa{":class" => "file.iconClass"}
|
|
|
|
%strong {{file.filePath}}
|
2016-08-01 10:22:26 -04:00
|
|
|
.file-actions
|
2016-08-03 14:28:22 -04:00
|
|
|
%a.btn.view-file.btn-file-option{":href" => "file.blobPath"}
|
2016-08-03 05:56:16 -04:00
|
|
|
View file @{{conflictsData.shortCommitSha}}
|
2016-08-01 10:22:26 -04:00
|
|
|
.diff-content.diff-wrap-lines
|
2016-08-08 10:24:52 -04:00
|
|
|
.diff-wrap-lines.code.file-content.js-syntax-highlight
|
2016-08-03 11:04:00 -04:00
|
|
|
%table
|
|
|
|
%tr.line_holder.parallel{"v-for" => "section in file.parallelLines"}
|
|
|
|
%template{"v-for" => "line in section"}
|
2016-08-01 10:22:26 -04:00
|
|
|
|
2016-08-03 11:04:00 -04:00
|
|
|
%template{"v-if" => "line.isHeader"}
|
|
|
|
%td.diff-line-num.header{":class" => "{ |
|
|
|
|
'head': line.isHead, |
|
|
|
|
'origin': line.isOrigin, |
|
|
|
|
'selected': line.isSelected, |
|
|
|
|
'unselected': line.isUnselected}"}
|
|
|
|
%td.line_content.header{":class" => "{ |
|
|
|
|
'head': line.isHead, |
|
|
|
|
'origin': line.isOrigin, |
|
|
|
|
'selected': line.isSelected, |
|
|
|
|
'unselected': line.isUnselected}"}
|
|
|
|
%strong {{line.richText}}
|
2016-08-08 08:57:09 -04:00
|
|
|
%button.btn{"@click" => "handleSelected(line.id, line.section)"}
|
|
|
|
{{line.buttonTitle}}
|
2016-08-01 10:22:26 -04:00
|
|
|
|
2016-08-03 11:04:00 -04:00
|
|
|
%template{"v-if" => "!line.isHeader"}
|
|
|
|
%td.diff-line-num.old_line{":class" => "{ |
|
|
|
|
'head': line.isHead, |
|
|
|
|
'origin': line.isOrigin, |
|
|
|
|
'match': line.hasMatch, |
|
|
|
|
'selected': line.isSelected, |
|
|
|
|
'unselected': line.isUnselected }"}
|
|
|
|
{{line.lineNumber}}
|
|
|
|
%td.line_content.parallel{":class" => "{ |
|
|
|
|
'head': line.isHead, |
|
|
|
|
'origin': line.isOrigin, |
|
|
|
|
'match': line.hasMatch, |
|
|
|
|
'selected': line.isSelected, |
|
|
|
|
'unselected': line.isUnselected }"}
|
|
|
|
{{{line.richText}}}
|
2016-08-02 16:27:37 -04:00
|
|
|
|
2016-08-03 16:22:58 -04:00
|
|
|
.files{"v-show" => "!isParallel"}
|
2016-08-01 10:22:26 -04:00
|
|
|
.diff-file.file-holder.conflict.inline-view{"v-for" => "file in conflictsData.files"}
|
|
|
|
.file-title
|
2016-08-03 14:28:22 -04:00
|
|
|
%i.fa.fa-fw{":class" => "file.iconClass"}
|
|
|
|
%strong {{file.filePath}}
|
2016-08-01 10:22:26 -04:00
|
|
|
.file-actions
|
2016-08-03 14:28:22 -04:00
|
|
|
%a.btn.view-file.btn-file-option{":href" => "file.blobPath"}
|
2016-08-03 05:56:16 -04:00
|
|
|
View file @{{conflictsData.shortCommitSha}}
|
2016-08-01 10:22:26 -04:00
|
|
|
|
|
|
|
.diff-content.diff-wrap-lines
|
|
|
|
.diff-wrap-lines.code.file-content.js-syntax-highlight.white
|
|
|
|
%table
|
|
|
|
%tr.line_holder{"v-for" => "line in file.inlineLines", |
|
|
|
|
":class" => "{ |
|
|
|
|
'head': line.isHead, |
|
|
|
|
'origin': line.isOrigin, |
|
|
|
|
'match': line.hasMatch, |
|
|
|
|
'selected': line.isSelected, |
|
|
|
|
'unselected': line.isUnselected }"}
|
|
|
|
|
|
|
|
%template{"v-if" => "!line.isHeader"}
|
|
|
|
%td.diff-line-num.new_line
|
|
|
|
%a {{line.new_line}}
|
|
|
|
%td.diff-line-num.old_line
|
|
|
|
%a {{line.old_line}}
|
|
|
|
%td.line_content
|
|
|
|
{{{line.richText}}}
|
|
|
|
|
|
|
|
%template{"v-if" => "line.isHeader"}
|
|
|
|
%td.diff-line-num.header
|
|
|
|
%td.diff-line-num.header
|
|
|
|
%td.line_content.header
|
|
|
|
%strong {{{line.richText}}}
|
2016-08-08 08:57:09 -04:00
|
|
|
%button.btn{"@click" => "handleSelected(line.id, line.section)"}
|
|
|
|
{{line.buttonTitle}}
|
2016-08-01 10:22:26 -04:00
|
|
|
|
|
|
|
.content-block.oneline-block.files-changed
|
|
|
|
%strong.resolved-count {{resolvedCount}}
|
|
|
|
of
|
|
|
|
%strong.total-count {{conflictsCount}}
|
|
|
|
conflicts have been resolved
|
|
|
|
|
|
|
|
.commit-message-container.form-group
|
|
|
|
.max-width-marker
|
2016-08-02 08:16:21 -04:00
|
|
|
%textarea.form-control.js-commit-message{":disabled" => "!allResolved", "v-model" => "conflictsData.commitMessage"}
|
|
|
|
{{{conflictsData.commitMessage}}}
|
2016-08-01 10:22:26 -04:00
|
|
|
|
2016-08-08 06:26:09 -04:00
|
|
|
%button{type: "button", class: "btn btn-success js-submit-button", ":disabled" => "!allResolved", "@click" => "commit()"}
|
|
|
|
%span Commit conflict resolution
|
|
|
|
%a.fa.fa-spin.fa-spinner{":class" => "{'hidden': !isSubmitting}"}
|
2016-08-01 10:22:26 -04:00
|
|
|
|
2016-08-08 06:26:09 -04:00
|
|
|
/ FIXME: Hardcoded path
|
|
|
|
%a.btn.btn-cancel{"href" => "diffs"}
|
|
|
|
Cancel
|