This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / pages / templates / repo / pipelines / fragments / logBlock.html
1.4 kB 23 lines
1{{ define "repo/pipelines/fragments/logBlock" }} 2<div id="lines" hx-swap-oob="beforeend"> 3 <details id="step-{{ .Id }}" {{if not .Collapsed}}open{{end}} class="group overflow-hidden rounded border border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-800"> 4 <summary class="list-none cursor-pointer transition-colors hover:bg-gray-50 hover:text-gray-600 dark:hover:bg-gray-700/40 dark:hover:text-gray-300"> 5 <div class="flex items-center gap-2 px-3 py-3 group-open:hidden"> 6 {{ i "chevron-right" "size-4 shrink-0" }} {{ template "stepHeader" . }} 7 </div> 8 <div class="hidden items-center gap-2 px-3 py-3 group-open:flex"> 9 {{ i "chevron-down" "size-4 shrink-0" }} {{ template "stepHeader" . }} 10 </div> 11 </summary> 12 <div class="overflow-x-auto border-t border-gray-200 bg-gray-50 px-3 py-3 font-mono text-sm leading-relaxed dark:border-gray-700 dark:bg-gray-800"> 13 {{ if .Command }}<div class="text-blue-600 dark:text-blue-300">{{ .Command }}</div>{{ end }} 14 <div id="step-body-{{ .Id }}" class="text-gray-900 dark:text-gray-100"></div> 15 </div> 16 </details> 17</div> 18{{ end }} 19 20{{ define "stepHeader" }} 21 <span class="truncate text-base font-semibold text-gray-900 dark:text-gray-100">{{ .Name }}</span> 22 <span class="ml-auto text-sm tabular-nums text-gray-500 dark:text-gray-400" data-timer="{{ .Id }}" data-start="{{ .StartTime.Unix }}"></span> 23{{ end }}