A vibe coded tangled fork which supports pijul.
at dce4b41d22fc1d63c9f3a037031ca6d38dd9996e 62 lines 2.3 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 {{ $id := .Id }} 27 <div class="sticky top-2 grid grid-cols-1 rounded border border-gray-200 dark:border-gray-700 divide-y divide-gray-200 dark:divide-gray-700"> 28 {{ range $name, $all := .Statuses }} 29 <a href="/{{ $.RepoInfo.FullName }}/pipelines/{{ $id }}/workflow/{{ $name }}" class="no-underline hover:no-underline hover:bg-gray-100/25 hover:dark:bg-gray-700/25"> 30 <div 31 class="flex gap-2 items-center justify-between p-2 {{ if eq $name $active }}bg-gray-100/50 dark:bg-gray-700/50{{ end }}"> 32 {{ $lastStatus := $all.Latest }} 33 {{ $kind := $lastStatus.Status.String }} 34 35 <div id="left" class="flex items-center gap-2 flex-shrink-0"> 36 {{ template "repo/pipelines/fragments/workflowSymbol" $all }} 37 {{ $name }} 38 </div> 39 <div id="right" class="flex items-center gap-2 flex-shrink-0"> 40 <span class="font-bold">{{ $kind }}</span> 41 {{ if .TimeTaken }} 42 {{ template "repo/fragments/duration" .TimeTaken }} 43 {{ else }} 44 {{ template "repo/fragments/shortTimeAgo" $lastStatus.Created }} 45 {{ end }} 46 </div> 47 </div> 48 </a> 49 {{ end }} 50 </div> 51 {{ end }} 52{{ end }} 53 54{{ define "logs" }} 55 <div id="log-stream" 56 class="text-sm" 57 hx-ext="ws" 58 ws-connect="/{{ $.RepoInfo.FullName }}/pipelines/{{ .Pipeline.Id }}/workflow/{{ .Workflow }}/logs"> 59 <div id="lines" class="flex flex-col gap-2"> 60 </div> 61 </div> 62{{ end }}