{{/* Copyright 2024 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */}} {{define "content"}} {{$outdirRel:=.outdirRel}} {{$outdirRevBaseURL:=.outdirRevBaseURL}} {{$currentURL:=.currentURL}} {{$currentRev:=.currentRev}} {{$buildDuration:=.buildDuration}}
{{if .sortSupported}} {{$sortReadyAsc := or (urlParamEq $currentURL "sort" "readyAsc") (not (urlParamIsSet $currentURL "sort"))}} {{$sortReadyDsc := urlParamEq $currentURL "sort" "readyDsc"}} {{$sortDurationAsc := urlParamEq $currentURL "sort" "durationAsc"}} {{$sortDurationDsc := urlParamEq $currentURL "sort" "durationDsc"}} {{$sortCompletionAsc := urlParamEq $currentURL "sort" "completionAsc"}} {{$sortCompletionDsc := urlParamEq $currentURL "sort" "completionDsc"}} {{else}} {{end}} {{range .subset}} {{end}}
Output
Rule
Remote Ready {{if $sortReadyAsc}}arrow_upward{{else if $sortReadyDsc}}arrow_downward{{end}} Duration {{if $sortDurationAsc}}arrow_upward{{else if $sortDurationDsc}}arrow_downward{{end}} Completion {{if $sortCompletionAsc}}arrow_upward{{else if $sortCompletionDsc}}arrow_downward{{end}} Ready Duration CompletionTimeline
{{trimPrefix .Output (printf "%s/" $outdirRel)}}
{{.Rule}} {{.Action}}
{{if .IsLocal}} {{/* Keep this empty branch. It's easier to read than multiple AND conditions. */}} {{else if and (not .Cached) (not .NoExec)}} cloud {{else if .Cached}} cloud_done {{end}} {{formatIntervalMetricTimestamp .Ready}} {{formatIntervalMetricHuman .Duration}} {{formatIntervalMetricTimestamp (addIntervals .Ready .Duration)}} {{if .ExecStartTime}} {{end}}
{{end}}