@(issue: model.Issue, comments: List[model.IssueComment], issueLabels: List[model.Label], collaborators: List[String], milestones: List[(model.Milestone, Int, Int)], labels: List[model.Label], hasWritePermission: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main(s"${issue.title} - Issue #${issue.issueId} - ${repository.owner}/${repository.name}", Some(repository)){ @html.header("issues", repository) @tab("issues", repository)
@issuedetail(issue, comments, collaborators, milestones, hasWritePermission, repository) @commentlist(issue, comments, hasWritePermission, repository) @commentform(issue, hasWritePermission, repository)
@if(issue.closed) { Closed } else { Open }
@defining(comments.filter( _.action.contains("comment") ).size){ count => @count @plural(count, "comment") }

Labels @if(hasWritePermission){
@helper.html.dropdown() { @labels.map { label =>
- @label.labelName
} }
}
}