@** * Yona, 21st Century Project Hosting SW * * Copyright Yona & Yobi Authors & NAVER Corp. & NAVER LABS Corp. * https://yona.io **@ @(project:Project, issue:Issue) @import org.apache.commons.lang3.StringUtils @import utils.TemplateHelper._ @import utils.AccessControl._ @import utils.JodaDateUtil @import play.libs.Json.toJson @import utils.Markdown @import controllers.api.IssueApi @avatarByLoginId(loginId: String, loginName: String) = { } @linkToUser(loginId: String, loginName: String, showAvatar: Boolean = true) = { @loginId match { case (loginId: String) => { @if(showAvatar){ @avatarByLoginId(loginId, loginName) } @loginName } case _ => { Anonymous } } } @assginedMesssage(newValue: String, user:User) = @{ val LoginId = user.loginId newValue match { case LoginId => "issue.event.assignedToMe" case _: String => "issue.event.assigned" case _ => "issue.event.unassigned" } } @isAuthorComment(commentId: String) = @{ if(commentId == UserApp.currentUser().loginId) {"author"} } @linkToPullRequest(pull: PullRequest) ={ @Messages("pullRequest")-@pull.number @pull.title } @linkToProject(owner: String, name: String) ={ @owner/@name } @linkToCommit(commitId: String) ={ @Messages("code.commits") @{"@"}@commitId } @VOTER_AVATAR_SHOW_LIMIT = @{ 5 }
@Messages("common.comment") @issue.comments.size

@if(issue.comments.size + issue.events.size > 0) { }