forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview: fix missing times in CI tooltip

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li fa3beeb9 09e5931b

verified
Changed files
+2 -2
appview
pages
templates
repo
pipelines
fragments
+2 -2
appview/pages/templates/repo/pipelines/fragments/tooltip.html
···
{{ $lastStatus := $all.Latest }}
{{ $kind := $lastStatus.Status.String }}
-
{{ $t := .TimeTaken }}
+
{{ $t := $pipeline.TimeTaken }}
{{ $time := "" }}
{{ if $t }}
{{ $time = durationFmt $t }}
{{ else }}
-
{{ $time = printf "%s ago" (shortTimeFmt $.Created) }}
+
{{ $time = printf "%s ago" (shortTimeFmt $pipeline.Created) }}
{{ end }}
<div id="left" class="flex items-center gap-2 flex-shrink-0">