@(collaborators: List[String], milestones: List[model.Milestone], labels: List[model.Label], hasWritePermission: Boolean, repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context) @import context._ @import 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
}
} }