@**
* Yona, 21st Century Project Hosting SW
*
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
@(project: Project, page: com.avaje.ebean.Page[PullRequest])
@import utils.JodaDateUtil
@import utils.TemplateHelper._
@import org.apache.commons.lang3.StringUtils
@if(page.getList.size> 0){
@for(req <- page.getList.iterator) {
@defining(User.findByLoginId(req.contributor.loginId)){ user =>
-
@if(user.avatarUrl == UserApp.DEFAULT_AVATAR_URL){
} else {
}
@if(user.name){
@user.getDisplayName
} else {
@Messages("issue.noAuthor")
}
@agoOrDateString(req.created)
@if(!req.commentThreads.isEmpty){
@defining(req.countCommentThreadsByState(CommentThread.ThreadState.CLOSED)){ countClosed =>
}
}
@if(project.isUsingReviewerCount && !req.reviewers.isEmpty){
}
@if(branchItemName(project.defaultBranch()) == branchItemName(req.toBranch)) {
@branchItemName(req.toBranch)
} else {
@branchItemName(req.toBranch)
}
@if(req.receiver != null) {
} else {
}
@if(req.isConflict == true) {@Messages("pullRequest.state.conflict")} else {@Messages("pullRequest.state." + req.state.toString.toLowerCase)}
}
}
} else {
@Messages("pullRequest.is.empty")
}