{{define "car_detail.html"}} {{template "page_head"}} {{.Car.ID}} — Railyard {{template "page_nav" .}}

{{.Car.Title}} {{.Car.Status}} {{.Car.Type}}

{{.Car.ID}} · P{{.Car.Priority}} · Track: {{.Car.Track}} {{if .Car.SkipTests}} · skip-tests{{end}}

Metadata

Branch
{{if .Car.Branch}}{{.Car.Branch}}{{else}}—{{end}}
Assignee
{{if .Car.Assignee}}{{.Car.Assignee}}{{else}}—{{end}}
Created
{{timeAgo .Car.CreatedAt}}
Updated
{{timeAgo .Car.UpdatedAt}}
{{if .Car.ClaimedAt}}
Claimed
{{timeAgo (deref .Car.ClaimedAt)}}
{{end}} {{if .Car.CompletedAt}}
Completed
{{timeAgo (deref .Car.CompletedAt)}}
{{end}} {{if .Car.ParentID}}
Parent
{{.Car.ParentID}} {{.Car.ParentTitle}}
{{end}}
{{if .Car.Children}}

Children ({{.Car.ChildrenDone}}/{{.Car.ChildrenTotal}} complete)

{{range .Car.Children}} {{end}}
IDTitleStatusType
{{.ID}} {{truncate .Title 40}} {{.Status}} {{.Type}}
{{end}}
{{if .Car.TotalTokens}}

Token Usage

{{commaFmt .Car.InputTokens}}
Input Tokens
{{commaFmt .Car.OutputTokens}}
Output Tokens
{{commaFmt .Car.TotalTokens}}
Total Tokens
{{if .Car.TokenModel}}
{{.Car.TokenModel}}
Model
{{dollars .Car.EstCost}}
Est. Cost
{{end}}
{{end}} {{if .Car.TotalCycles}}

Context Cycles

{{.Car.TotalCycles}}
Total Cycles
{{if .Car.AvgCycleDuration}}
{{.Car.AvgCycleDuration}}
Avg Duration
{{end}}
{{.Car.TotalFilesChanged}}
Files Changed
{{if .Car.CycleStalled}}
Stalled
Status
{{end}}
{{if .Car.CycleDetails}}
{{range .Car.CycleDetails}} {{end}}
Cycle Engine Duration Files Note Commit
{{.Cycle}} {{if .EngineID}}{{.EngineID}}{{else}}—{{end}} {{.Duration}} {{.FilesChanged}} {{expandable .Note 60}} {{if .CommitHash}}{{truncate .CommitHash 7}}{{else}}—{{end}}
{{end}}
{{end}} {{if .Car.Description}}

Description

{{.Car.Description}}
{{end}} {{if .Car.DesignNotes}}

Design Notes

{{.Car.DesignNotes}}
{{end}} {{if .Car.Acceptance}}

Acceptance Criteria

{{.Car.Acceptance}}
{{end}} {{if or .Car.BlockedBy .Car.Blocks}}

Dependencies

{{if .Car.BlockedBy}}

Blocked by

{{end}} {{if .Car.Blocks}}

Blocks

{{end}}
{{end}} {{if and .Graph .Graph.Tree}}{{if gt (len .Graph.Tree) 1}}

Dependency Tree

{{range .Graph.Tree}}
{{if eq .Indent 0}}{{else if eq .Indent 1}}├── {{else if eq .Indent 2}}│ ├── {{else}}│ │ ├── {{end}} {{if eq .Indent 0}}{{end}}{{truncate .CarID 20}}{{if eq .Indent 0}}{{end}} {{.Status}} {{truncate .Title 30}} {{if .Relation}}({{.Relation}}){{end}}
{{end}}
{{end}}{{end}} {{if .Car.Progress}}

Progress History

{{range .Car.Progress}} {{end}}
Cycle Engine Note Commit When
{{.Cycle}} {{if .EngineID}}{{.EngineID}}{{else}}—{{end}} {{expandable .Note 80}} {{if .CommitHash}}{{truncate .CommitHash 7}}{{else}}—{{end}} {{timeAgo .CreatedAt}}
{{end}}
{{end}}