@(status: gitbucket.core.service.PullRequestService.MergeStatus, issue: gitbucket.core.model.Issue, pullreq: gitbucket.core.model.PullRequest, originRepository: gitbucket.core.service.RepositoryService.RepositoryInfo, forkedRepository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers
@if(!status.statuses.isEmpty){
@defining(status.commitStateSummary){ case (summaryState, summary) => @helpers.commitStateIcon(summaryState) @helpers.commitStateText(summaryState, pullreq.commitIdTo) — @summary checks }
@status.statusesAndRequired.map { case (status, required) =>
@if(required){ Required } @status.targetUrl.map { url => Details }
@helpers.commitStateIcon(status.state) @status.context @status.description.map { desc => — @desc }
}
}
@if(status.hasConflict){
This branch has conflicts that must be resolved
@if(status.hasMergePermission){ Use the command line to resolve conflicts before continuing. } else { Only those with write access to this repository can merge pull requests. }

@status.conflictMessage.map { message => @helpers.markdown(message, originRepository, false, true, false) }
} else { @if(status.branchIsOutOfDate){ @if(status.hasUpdatePermission){
}
This branch is out-of-date with the base branch
Merge the latest changes from @pullreq.branch into this branch.
} else { @if(status.hasRequiredStatusProblem) {
Required statuses must pass before merging.
All required status checks on this pull request must run successfully to enable automatic merging.
} else {
@if(status.hasMergePermission){ Merging can be performed automatically.
Merging can be performed automatically.
} else { This branch has no conflicts with the base branch.
Only those with write access to this repository can merge pull requests.
} } } }
@if(status.hasMergePermission){
  You can also merge branches on the command line.
}