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