@(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)], priorities: List[gitbucket.core.model.Priority], labels: List[gitbucket.core.model.Label], isEditable: Boolean, isManageable: Boolean, isCommentManageable: Boolean, repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers @gitbucket.core.html.main(s"${issue.title} - Issue #${issue.issueId} - ${repository.owner}/${repository.name}", Some(repository)){ @gitbucket.core.html.menu("issues", repository){
@if(isManageable || context.loginAccount.map(_.userName == issue.openedUserName).getOrElse(false)){ Edit } @if(isEditable){ New issue }
Save Cancel

# @issue.title #@issue.issueId

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

@gitbucket.core.issues.html.commentlist(Some(issue), comments, isCommentManageable, repository) @gitbucket.core.issues.html.commentform(issue, true, isEditable, isManageable, repository)
@gitbucket.core.issues.html.issueinfo(Some(issue), comments, issueLabels, collaborators, milestones, priorities, None, labels, isManageable, repository)
} }