{{template "base/alert" .}}
{{if .Milestone.RenderedContent}}
{{template "repo/issue/filters" .}}
{{template "shared/issuelist" dict "." . "listType" "milestone"}}
{{.Milestone.Name}}
{{if not .Repository.IsArchived}} {{end}}
{{.Milestone.RenderedContent}}
{{end}}
{{$closedDate:= DateUtils.TimeSince .Milestone.ClosedDateUnix}}
{{if .IsClosed}}
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
{{else}}
{{if .Milestone.DeadlineString}}
{{svg "octicon-calendar"}}
{{DateUtils.AbsoluteShort (.Milestone.DeadlineString|DateUtils.ParseLegacy)}}
{{else}}
{{svg "octicon-calendar"}}
{{ctx.Locale.Tr "repo.milestones.no_due_date"}}
{{end}}
{{end}}
{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}
{{if .TotalTrackedTime}}
{{svg "octicon-clock"}}
{{.TotalTrackedTime | Sec2Time}}
{{end}}