@(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("milestones", repository){ @if(milestone.isEmpty){

#### New milestone

Create a new milestone to help organize your issues and pull requests.
}

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

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