{ s.Step }
if s.Note != "" {{ s.Note }
} else { @templ.Raw(s.HTML) }package web // The CI pages: the runs of a repository, a run with its jobs, a job with its // steps and its log (actions.go). A state is always a word as well as a // symbol and a colour. // CheckIcon is the symbol of a state: a mark in the colour of its kind, with // the state as its text for a screen reader. templ CheckIcon(kind, state string) { } templ Actions(l Layout, p ActionsPage) { @Shell(l, nil) { if len(p.Runs) == 0 {
no runs yet: a push that matches a workflow of .github/workflows starts one.
} else {| workflow | commit | ref | actor | time | created |
|---|
{ p.Error }
}
if len(p.Annotations) > 0 {
{ j.Error }
} if len(j.Steps) > 0 {if a.StepHref != "" { { a.Step } } else { { a.Step } }
}{ a.Level } if !grouped { if a.JobHref != "" { { a.Job } } else { { a.Job } } { a.Step } } if a.Title != "" { { a.Title } }
{ a.Message }
if a.Where != "" {if a.WhereHref != "" { { a.Where } } else { { a.Where } }
}more annotations exist than are shown.
} } // JobAnnotations is the annotations of the job page, replaced by the live // updates; the element exists even when there is none, so that the first one // has something to replace. templ JobAnnotations(anns []AnnotationView, more bool) {| name | size | job | expires | |
|---|---|---|---|---|
| { r.Name } | { r.Size } | if r.JobHref != "" { { r.Job } } else { { r.Job } } | if r.ExpiresAt != "" { } else { { r.Expires } } | if r.DeleteAction != "" { } |
{ a.Usage }
{ s.Note }
} else { @templ.Raw(s.HTML) }the job has more summaries than the first 20, which are shown.
}more summaries are not shown: the summaries of the page are over { humanSize(maxSummaryPageBytes) }.
} } templ runRail(p RunPage) {{ j.Error }
}{ p.Note }
} if p.Prev != "" { }no checks
} else {{ c.Note }
}