@(issue: gitbucket.core.model.Issue, comments: List[gitbucket.core.model.IssueComment], issueLabels: List[gitbucket.core.model.Label], collaborators: List[String], milestones: List[(gitbucket.core.model.Milestone, Int, Int)], labels: List[gitbucket.core.model.Label], hasWritePermission: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @html.main(s"${issue.title} - Issue #${issue.issueId} - ${repository.owner}/${repository.name}", Some(repository)){ @html.menu("issues", repository){
@if(hasWritePermission || loginAccount.map(_.userName == issue.openedUserName).getOrElse(false)){ Edit } New issue
Save Cancel

# @issue.title #@issue.issueId

@if(issue.closed) { Closed } else { Open } @user(issue.openedUserName, styleClass="username strong") opened this issue @helper.html.datetimeago(issue.registeredDate) - @defining( comments.count( _.action.contains("comment") ) ){ count => @count @plural(count, "comment") }

@commentlist(Some(issue), comments, hasWritePermission, repository) @commentform(issue, true, hasWritePermission, repository)
@issueinfo(issue, comments, issueLabels, collaborators, milestones, labels, hasWritePermission, repository)
} }