@(issues: List[service.IssuesService.IssueInfo], page: Int, collaborators: List[String], milestones: List[model.Milestone], labels: List[model.Label], openCount: Int, closedCount: Int, allCount: Int, assignedCount: Option[Int], createdByCount: Option[Int], labelCounts: Map[String, Int], condition: service.IssuesService.IssueSearchCondition, repository: service.RepositoryService.RepositoryInfo, hasWritePermission: Boolean)(implicit context: app.Context) @import context._ @import view.helpers._ @html.main(s"Issues - ${repository.owner}/${repository.name}", Some(repository)){ @html.menu("issues", repository){ @tab("issues", false, repository)
@*

@if(condition.milestoneId.isEmpty){ No milestone selected } else { @if(condition.milestoneId.get.isEmpty){ Issues with no milestone } else { Milestone: @milestones.find(_.milestoneId == condition.milestoneId.get.get).map(_.title) } } @helper.html.dropdown() { @if(condition.milestoneId.isDefined){
- Clear milestone filter
}
- @helper.html.checkicon(condition.milestoneId == Some(None)) Issues with no milestone
@milestones.filter(_.closedDate.isEmpty).map { milestone =>
- @helper.html.checkicon(condition.milestoneId == Some(Some(milestone.milestoneId))) @milestone.title
  @milestone.dueDate.map { dueDate => @if(isPast(dueDate)){ Due in @date(dueDate) } else { Due in @date(dueDate) } }.getOrElse { No due date }
} } @if(condition.milestoneId.isDefined && condition.milestoneId.get.isDefined){ @milestones.find(_.milestoneId == condition.milestoneId.get.get).map { milestone =>
@_root_.issues.milestones.html.progress(openCount + closedCount, closedCount, false)
@openCount open issues @if(milestone.closedDate.isDefined){ @milestone.closedDate.map { closedDate => Closed in @date(closedDate) } } else { @milestone.dueDate.map { dueDate => @if(isPast(dueDate)){ Due in @date(dueDate) } else { Due in @date(dueDate) } } } } }

Labels
@if(hasWritePermission){

New label @_root_.issues.labels.html.edit(None, repository) }
*@ @***** show issue list *****@
@listparts(issues, page, openCount, closedCount, condition, collaborators, milestones, labels, Some(repository), hasWritePermission)
@if(hasWritePermission){ } } } @if(hasWritePermission){
}