{{template "repo/header" .}}
{{template "base/alert" .}}
{{range .Milestones}}
  • {{svg "octicon-milestone" 16}} {{.Name}}

    {{.Completeness}}%
    {{svg "octicon-issue-opened" 14}} {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}}
    {{svg "octicon-check" 14}} {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}}
    {{if .TotalTrackedTime}}
    {{svg "octicon-clock"}} {{.TotalTrackedTime|Sec2Time}}
    {{end}} {{if .UpdatedUnix}}
    {{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.update_ago" (TimeSinceUnix .UpdatedUnix $.locale) | Safe}}
    {{end}}
    {{if .IsClosed}} {{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}} {{svg "octicon-clock" 14}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}} {{else}} {{if .DeadlineString}} {{svg "octicon-calendar" 14}} {{DateTime "short" .DeadlineString}} {{else}} {{svg "octicon-calendar" 14}} {{$.locale.Tr "repo.milestones.no_due_date"}} {{end}} {{end}}
    {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}} {{end}}
    {{if .Content}}
    {{.RenderedContent|Str2html}}
    {{end}}
  • {{end}} {{template "base/paginate" .}}