@** * Yona, 21st Century Project Hosting SW * * Copyright Yona & Yobi Authors & NAVER Corp. & NAVER LABS Corp. * https://yona.io **@ @(project:Project, issue:Issue) @import utils.TemplateHelper._ @import models.enumeration.State @if(issue.hasChildIssue) { @defining(Issue.countByParentIssueIdAndState(issue.id, State.OPEN)) { openIssueCount => @defining(Issue.countByParentIssueIdAndState(issue.id, State.CLOSED)) { closedIssueCount => @defining(getPercent(closedIssueCount.toDouble, openIssueCount + closedIssueCount)) { percentage =>
@if(percentage != 100){@closedIssueCount/}@(closedIssueCount + openIssueCount) } } } } @if(issue.parent != null){ @defining(Issue.finder.byId(issue.parent.id)) { parentIssue => #@parentIssue.getNumber @parentIssue.title.take(10).trim()@if(parentIssue.title.size > 10){...} } }