A vibe coded tangled fork which supports pijul.
at 3a3a98e04085af93dc15e1c8c4e6e52eb0e1efab 52 lines 1.8 kB view raw
1{{ define "title" }} {{ .Workflow }} &middot; pipeline {{ .Pipeline.Id }} &middot; {{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "extrameta" }} 4 {{ $title := "pipelines"}} 5 {{ $url := printf "https://tangled.sh/%s/pipelines" .RepoInfo.FullName }} 6 {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo "Title" $title "Url" $url) }} 7{{ end }} 8 9{{ define "repoContent" }} 10<section class="w-full grid grid-cols-1 md:grid-cols-4 gap-2 mt-2"> 11 <div class="col-span-1"> 12 {{ block "sidebar" . }} {{ end }} 13 </div> 14 <div class="col-span-1 md:col-span-3"> 15 {{ block "logs" . }} {{ end }} 16 </div> 17</section> 18{{ end }} 19 20{{ define "repoAfter" }} 21{{ end }} 22 23{{ define "sidebar" }} 24 {{ $active := .Workflow }} 25 {{ with .Pipeline }} 26 <div class="rounded border border-gray-200 dark:border-gray-700"> 27 {{ range $name, $all := .Statuses }} 28 <div class="flex items-center justify-between p-2 border-b border-gray-200 dark:border-gray-700 {{if eq $name $active}}bg-gray-100/50 dark:bg-gray-700/50{{end}}"> 29 {{ $lastStatus := $all.Latest }} 30 {{ $kind := $lastStatus.Status.String }} 31 32 {{ $t := .TimeTaken }} 33 {{ $time := "" }} 34 {{ if $t }} 35 {{ $time = durationFmt $t }} 36 {{ else }} 37 {{ $time = printf "%s ago" (shortTimeFmt $.Created) }} 38 {{ end }} 39 40 <div id="left" class="flex items-center gap-2 flex-shrink-0"> 41 {{ template "repo/pipelines/fragments/workflowSymbol" $all }} 42 {{ $name }} 43 </div> 44 <div id="right" class="flex items-center gap-2 flex-shrink-0"> 45 <span class="font-bold">{{ $kind }}</span> 46 <time>{{ $time }}</time> 47 </div> 48 </div> 49 {{ end }} 50 </div> 51 {{ end }} 52{{ end }}