{{.Milestone.Name}}
{{if not .Repository.IsArchived}}
{{if or .CanWriteIssues .CanWritePulls}}
{{if .Milestone.IsClosed}}
{{$.locale.Tr "repo.milestones.open"}}
{{else}}
{{$.locale.Tr "repo.milestones.close"}}
{{end}}
{{.locale.Tr "repo.milestones.edit"}}
{{end}}
{{.locale.Tr "repo.issues.new"}}
{{end}}
{{.Milestone.RenderedContent|Str2html}}
{{end}}
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.locale}}
{{if .IsClosed}}
{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
{{else}}
{{svg "octicon-calendar"}}
{{if .Milestone.DeadlineString}}
{{DateTime "short" .Milestone.DeadlineString}}
{{else}}
{{$.locale.Tr "repo.milestones.no_due_date"}}
{{end}}
{{end}}
{{.locale.Tr "repo.milestones.completeness" .Milestone.Completeness | Safe}}