{{.Milestone.Name}}
{{if or .CanWriteIssues .CanWritePulls}}
{{.locale.Tr "repo.milestones.edit"}}
{{end}}
{{.locale.Tr "repo.issues.new"}}
{{end}}
{{.Milestone.RenderedContent|Str2html}}
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.locale}}
{{if .IsClosed}}
{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate|Str2html}}
{{else}}
{{svg "octicon-calendar"}}
{{if .Milestone.DeadlineString}}
{{.Milestone.DeadlineString}}
{{else}}
{{$.locale.Tr "repo.milestones.no_due_date"}}
{{end}}
{{end}}
{{.locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}
{{template "repo/issue/openclose" .}}