{{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}}
{{ $closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix $.Lang }} {{if .IsClosed}} {{$.i18n.Tr "repo.milestones.closed" $closedDate|Str2html}} {{else}} {{if .Milestone.DeadlineString}} {{.Milestone.DeadlineString}} {{else}} {{$.i18n.Tr "repo.milestones.no_due_date"}} {{end}} {{end}}   {{.i18n.Tr "repo.milestones.completeness" .Milestone.Completeness}}
{{/* 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. */}}
{{range .Issues}} {{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }}
  • {{if or (and $.CanWriteIssues (not .IsPull)) (and $.CanWritePulls .IsPull)}}
    {{end}}
    #{{.Index}}
    {{.Title}} {{range .Labels}} {{.Name}} {{end}} {{if .NumComments}} {{.NumComments}} {{end}} {{if .TotalTrackedTime}} {{.TotalTrackedTime | Sec2Time}} {{end}}

    {{if gt .Poster.ID 0}} {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink (.Poster.GetDisplayName|Escape) | Safe}} {{else}} {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}} {{end}} {{if .Ref}} {{.Ref}} {{end}} {{$tasks := .GetTasks}} {{if gt $tasks 0}} {{$tasksDone := .GetTasksDone}} {{$tasksDone}} / {{$tasks}} {{end}} {{if ne .DeadlineUnix 0}} {{.DeadlineUnix.FormatShort}} {{end}} {{range .Assignees}} {{end}}

  • {{end}} {{template "base/paginate" .}}
    {{template "base/footer" .}}