@(collaborators: List[String], milestones: List[gitbucket.core.model.Milestone], 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"New Issue - ${repository.owner}/${repository.name}", Some(repository)){ @html.menu("issues", repository){ @navigation("issues", false, repository)

@avatar(loginAccount.get.userName, 48)
No one is assigned @if(hasWritePermission){ @helper.html.dropdown() {
- Clear assignee
@collaborators.map { collaborator =>
- @avatar(collaborator, 20) @collaborator
} } }
No milestone @if(hasWritePermission){ @helper.html.dropdown() {
- Clear this milestone
@milestones.filter(_.closedDate.isEmpty).map { milestone =>
- @milestone.title
  @milestone.dueDate.map { dueDate => @if(isPast(dueDate)){ Due by @date(dueDate) } else { Due by @date(dueDate) } }.getOrElse { No due date }
} } }

@helper.html.preview(repository, "", false, true, true, hasWritePermission, "width: 565px; height: 200px; max-height: 250px;", elastic = true)
@if(hasWritePermission){ Labels
}
} }