{{template "base/head" .}}
{{template "repo/header" .}}

{{.Milestone.Name}}

{{if not .Repository.IsArchived}}
{{if or .CanWriteIssues .CanWritePulls}} {{.i18n.Tr "repo.milestones.edit"}} {{end}} {{.i18n.Tr "repo.issues.new"}}
{{end}}
{{.Milestone.RenderedContent|Str2html}}
{{ $closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.Lang }} {{if .IsClosed}} {{svg "octicon-clock"}} {{$.i18n.Tr "repo.milestones.closed" $closedDate|Str2html}} {{else}} {{svg "octicon-calendar"}} {{if .Milestone.DeadlineString}} {{.Milestone.DeadlineString}} {{else}} {{$.i18n.Tr "repo.milestones.no_due_date"}} {{end}} {{end}}   {{.i18n.Tr "repo.milestones.completeness" .Milestone.Completeness}}
{{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. */}}
{{template "shared/issuelist" mergeinto . "listType" "milestone"}}
{{template "base/footer" .}}