{{define "content" -}}

~{{.Repo.OwnerName}}/{{.Repo.Name}} · parade

{{template "viewtabs" (dict "Repo" .Repo "Views" .Views "Current" "beads" "Ref" .Ref)}} {{if or (eq .Data.Mode "detail") (eq .Data.Mode "epic")}} {{/* ------------- detail / epic pane ------------- */}}

← Back to the parade

{{with .Data.Issue}}

{{.ID}} {{.Title}} {{if eq $.Data.Mode "epic"}}epic{{end}} {{.Lane}}

status: {{.Status}} {{if .Priority}}P{{.Priority}}{{end}} {{if .IssueType}}{{.IssueType}}{{end}} {{if .Assignee}}@{{.Assignee}}{{end}} {{range .Labels}}{{.}}{{end}}
{{if .CreatedBy}}{{end}} {{if .Owner}}{{end}} {{if .EstimatedMinutes}}{{end}} {{if .ExternalRef}}{{end}} {{if .SpecID}}{{end}} {{if .CreatedAt}}{{end}} {{if .StartedAt}}{{end}} {{if .UpdatedAt}}{{end}} {{if .ClosedAt}}{{end}}
Created by{{.CreatedBy}}
Owner{{.Owner}}
Estimate{{.EstimatedMinutes}} min
External ref{{.ExternalRef}}
Spec{{.SpecID}}
Created{{.CreatedAt}}
Started{{.StartedAt}}
Updated{{.UpdatedAt}}
Closed{{.ClosedAt}}
{{if .Description}}
Description
{{.Description}}
{{end}} {{if .Design}}
Design
{{.Design}}
{{end}} {{if .AcceptanceCriteria}}
Acceptance criteria
{{.AcceptanceCriteria}}
{{end}} {{if .Notes}}
Notes
{{.Notes}}
{{end}}
{{if eq $.Data.Mode "epic"}}

Subtasks{{if $.Data.SubtaskTotal}} {{$.Data.SubtaskDone}} of {{$.Data.SubtaskTotal}} done{{end}}

{{if $.Data.SubtaskTotal}}
{{else}}

No subtasks linked to this epic.

{{end}}
{{end}}

Depends on

{{if $.Data.DependsOn}}
    {{range $.Data.DependsOn}}
  • {{.IssueID}} {{if .Title}}— {{.Title}}{{end}} {{.Type}} {{if .Closed}}closed{{else}}{{.Status}}{{end}}
  • {{end}}
{{else}}

No outgoing dependencies.

{{end}}

Depended on by

{{if $.Data.DependedOnBy}}
    {{range $.Data.DependedOnBy}}
  • {{.IssueID}} {{if .Title}}— {{.Title}}{{end}} {{.Type}}
  • {{end}}
{{else}}

Nothing depends on this issue.

{{end}}
{{if or $.Data.DependsTree $.Data.DependentTree}}
{{if $.Data.DependsTree}}

Prerequisite chain — everything this waits on, transitively

{{end}} {{if $.Data.DependentTree}}

Unblocks — everything waiting on this, transitively

{{end}}
{{end}}
{{if $.Data.Comments}} {{range $.Data.Comments}}
{{.Author}} {{if .CreatedAt}}· {{.CreatedAt}}{{end}}
{{.Text}}
{{end}} {{else}}

No comments.

{{end}} {{/* The Comments tab has no closed event, so the close reason is shown here at the end; the History tab already carries it as the closed event. */}} {{if .CloseReason}}

Close reason

{{.CloseReason}}
{{end}}
{{if $.Data.History}}
    {{range $.Data.History}}
  • {{.Actor}} {{.Summary}} {{if .CreatedAt}}· {{.CreatedAt}}{{end}}
    {{if .Text}}
    {{.Text}}
    {{end}}
  • {{end}}
{{else}}

No activity yet.

{{end}}
{{else}}
Issue not found.
{{end}} {{else}} {{/* ---------------- board ---------------- */}} {{if .Data.Truncated}}
Showing the first {{.Data.Total}} of {{.Data.ShownOf}} issues.
{{end}}
{{if .Ref}}{{end}} {{if .Data.Filter.Active}}Clear{{end}}
{{if .Data.Milestones}}

Milestones

{{range .Data.Milestones}} {{.Name}} {{.Done}}/{{.Total}} {{end}}
{{end}}
{{.Data.Counts.Rolling}}
Rolling
{{.Data.Counts.LinedUp}}
Lined Up
{{.Data.Counts.Stalled}}
Stalled
{{.Data.Counts.PastStand}}
Past Stand
{{.Data.Counts.Total}}
Total
{{range .Data.Lanes}} {{end}}
{{end}}
{{- end}}