{{.Milestone.Name}}
{{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}}
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.locale}}
{{if .IsClosed}}
{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}}
{{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" .}}
{{template "repo/issue/openclose" .}}
{{/* Ten wide does not cope well and makes the columns stack.
This seems to be related to jQuery's hide/show: in fact, switching
issue-actions and issue-filters and having this ten wide will show
this one correctly, but not the other one. */}}