this repo has no description
1{{ define "title" }}pipelines · {{ .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<div class="flex justify-between items-center gap-4">
11 <div class="flex gap-4">
12 </div>
13
14</div>
15<div class="error" id="issues"></div>
16{{ end }}
17
18{{ define "repoAfter" }}
19 <section
20 class="w-full flex flex-col gap-2 mt-2"
21 >
22 {{ range .Pipelines }}
23 {{ block "pipeline" (list $ .) }} {{ end }}
24 {{ else }}
25 <p class="text-center pt-5 text-gray-400 dark:text-gray-500">
26 No pipelines run for this repository.
27 </p>
28 {{ end }}
29 </section>
30{{ end }}
31
32{{ define "pipeline" }}
33 {{ $root := index . 0 }}
34 {{ $p := index . 1 }}
35 <div class="py-4 px-6 bg-white dark:bg-gray-800 dark:text-white">
36 {{ block "pipelineHeader" $ }} {{ end }}
37 </div>
38{{ end }}
39
40{{ define "pipelineHeader" }}
41 {{ $root := index . 0 }}
42 {{ $p := index . 1 }}
43 {{ with $p }}
44 <div class="grid grid-cols-4 md:grid-cols-8 gap-2 items-center w-full">
45 <div class="col-span-1 md:col-span-5 flex items-center gap-4">
46 {{ $target := .Trigger.TargetRef }}
47 {{ $workflows := .Workflows }}
48 {{ if .Trigger.IsPush }}
49 <a href="/{{ $root.RepoInfo.FullName }}/pipelines/{{ .Id }}/workflow/{{ index $workflows 0 }}" class="block">
50 <span class="font-bold">{{ $target }}</span>
51 <span>push</span>
52 </a>
53 <span class="hidden md:inline-flex gap-2 items-center font-mono text-sm">
54 {{ $old := deref .Trigger.PushOldSha }}
55 {{ $new := deref .Trigger.PushNewSha }}
56
57 <a href="/{{ $root.RepoInfo.FullName }}/commit/{{ $new }}">{{ slice $new 0 8 }}</a>
58 {{ i "arrow-left" "size-4" }}
59 <a href="/{{ $root.RepoInfo.FullName }}/commit/{{ $old }}">{{ slice $old 0 8 }}</a>
60 </span>
61 {{ else if .Trigger.IsPullRequest }}
62 <span>
63 pull request
64 <span class="inline-flex gap-2 items-center">
65 {{ $target }}
66 {{ i "arrow-left" "size-4" }}
67 {{ .Trigger.PRSourceBranch }}
68 </span>
69 </span>
70 {{ end }}
71 </div>
72
73 <div class="col-span-1 pl-4">
74 {{ template "repo/pipelines/fragments/pipelineSymbolLong" . }}
75 </div>
76
77 <div class="col-span-1 text-right">
78 <time title="{{ .Created | longTimeFmt }}">
79 {{ .Created | shortTimeFmt }} ago
80 </time>
81 </div>
82
83 {{ $t := .TimeTaken }}
84 <div class="col-span-1 text-right">
85 {{ if $t }}
86 <time title="{{ $t }}">{{ $t | durationFmt }}</time>
87 {{ else }}
88 <time>--</time>
89 {{ end }}
90 </div>
91 </div>
92 {{ end }}
93{{ end }}