@(hasConflict: Boolean, hasProblem: Boolean, issue: model.Issue, pullreq: model.PullRequest, statuses: List[model.CommitStatus], repository: service.RepositoryService.RepositoryInfo, requestRepositoryUrl: String)(implicit context: app.Context) @import context._ @import view.helpers._ @import model.CommitState
@if(!statuses.isEmpty){
@if(statuses.size==1){ @defining(statuses.head){ status =>
@status.targetUrl.map{ url => Details } @commitStateIcon(status.state) @commitStateText(status.state, pullreq.commitIdTo) @status.description.map{ desc => — @desc }
} }else{ @defining(statuses.groupBy(_.state)){ stateMap => @defining(CommitState.combine(stateMap.keySet)){ state =>
@commitStateIcon(state) @commitStateText(state, pullreq.commitIdTo) — @{stateMap.map{ case (keyState, states) => states.size+" "+keyState.name }.mkString(", ")} checks
@statuses.map{ status =>
@status.targetUrl.map{ url => Details } @commitStateIcon(status.state) @status.context @status.description.map{ desc => — @desc }
}
} } }
}
@if(hasConflict){ We can’t automatically merge this pull request. } else{ @if(hasProblem){ Merge with caution! } else { This pull request can be automatically merged. } }
@if(hasConflict){ Use the command line to resolve conflicts before continuing. } else { You can also merge branches on the command line. }