BigW Consortium Gitlab

Commit de87c6f6 by Sean McGivern

Merge branch '21135-resolve-these-conflicts-link-is-too-subtle' into 'master'

Replace link to Resolve conflicts with buttons Closes #21135 See merge request !8229
parents ac3789d2 822534c4
- can_resolve = @merge_request.conflicts_can_be_resolved_by?(current_user)
- can_resolve_in_ui = @merge_request.conflicts_can_be_resolved_in_ui?
- can_merge = @merge_request.can_be_merged_via_command_line_by?(current_user)
%h4.has-conflicts %h4.has-conflicts
= icon("exclamation-triangle") = icon("exclamation-triangle")
This merge request contains merge conflicts This merge request contains merge conflicts
%p %p
Please To merge this request, resolve these conflicts
- if @merge_request.conflicts_can_be_resolved_by?(current_user) - if can_resolve && !can_resolve_in_ui
- if @merge_request.conflicts_can_be_resolved_in_ui? locally
= link_to "resolve these conflicts", conflicts_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)
- else
%span.has-tooltip{title: "These conflicts cannot be resolved through GitLab"}
resolve these conflicts locally
- else
resolve these conflicts
or or
- unless can_merge
ask someone with write access to this repository to
merge it locally.
- if @merge_request.can_be_merged_via_command_line_by?(current_user) - if (can_resolve && can_resolve_in_ui) || can_merge
#{link_to "merge this request manually", "#modal_merge_info", class: "how_to_merge_link vlink", "data-toggle" => "modal"}. .btn-group
- else - if can_resolve && can_resolve_in_ui
ask someone with write access to this repository to merge this request manually. = link_to "Resolve conflicts", conflicts_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: "btn"
- if can_merge
= link_to "Merge locally", "#modal_merge_info", class: "btn how_to_merge_link vlink", "data-toggle" => "modal"
---
title: Improve visibility of "Resolve conflicts" and "Merge locally" actions
merge_request: 8229
author:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment