@(milestone: Option[gitbucket.core.model.Milestone], repository: gitbucket.core.service.RepositoryService.RepositoryInfo)(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @html.main(s"Milestones - ${repository.owner}/${repository.name}"){ @html.menu("issues", repository){ @if(milestone.isEmpty){

#### New milestone

Create a new milestone to help organize your issues and pull requests.
} else { @issues.html.navigation("milestones", false, repository)
}

Description @milestone.map(_.description)
Due Date @helper.html.datepicker("dueDate", milestone.flatMap(_.dueDate))

@if(milestone.isEmpty){ } else { @if(milestone.get.closedDate.isDefined){ } else { } }
} }