diff --git a/appview/pages/templates/repo/pipelines/workflow.html b/appview/pages/templates/repo/pipelines/workflow.html index 62dc4164..0ec37983 100644 --- a/appview/pages/templates/repo/pipelines/workflow.html +++ b/appview/pages/templates/repo/pipelines/workflow.html @@ -19,13 +19,17 @@ {{ define "sidebar" }} {{ $active := .Workflow }} + + {{ $activeTab := "bg-white dark:bg-gray-700 drop-shadow-sm" }} + {{ $inactiveTab := "bg-gray-100 dark:bg-gray-800" }} + {{ with .Pipeline }} {{ $id := .Id }}
{{ range $name, $all := .Statuses }}
+ class="flex gap-2 items-center justify-between p-2 {{ if eq $name $active }} {{ $activeTab }} {{ else }} {{ $inactiveTab }} {{ end }}"> {{ $lastStatus := $all.Latest }} {{ $kind := $lastStatus.Status.String }}