@(issue: gitbucket.core.model.Issue, comments: List[gitbucket.core.model.IssueComment], issueLabels: List[gitbucket.core.model.Label], issueAssignees: List[gitbucket.core.model.IssueAssignee], collaborators: List[String], milestones: List[(gitbucket.core.model.Milestone, Int, Int)], priorities: List[gitbucket.core.model.Priority], labels: List[gitbucket.core.model.Label], customFields: List[(gitbucket.core.model.CustomField, Option[gitbucket.core.model.IssueCustomField])], 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( issue = Some(issue), comments = comments, issueLabels = issueLabels, issueAssignees = issueAssignees, collaborators = collaborators, milestones = milestones, priorities = priorities, defaultPriority = None, labels = labels, customFields = customFields, isManageable = isManageable, repository = repository )
} }