diff --git a/appview/pages/pages.go b/appview/pages/pages.go index 9b436bef..debee4b9 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -1758,7 +1758,7 @@ type PipelineStatusesParams struct { } func (p *Pages) PipelineStatusesFragment(w io.Writer, params PipelineStatusesParams) error { - return p.executePlain("repo/fragments/commitPipelineStatuses", w, params) + return p.executePlain("repo/fragments/pipelineStatuses", w, params) } type WorkflowParams struct { diff --git a/appview/pages/templates/repo/fragments/commitPipelineStatuses.html b/appview/pages/templates/repo/fragments/commitPipelineStatuses.html deleted file mode 100644 index 2069278c..00000000 --- a/appview/pages/templates/repo/fragments/commitPipelineStatuses.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ define "repo/fragments/commitPipelineStatuses" }} - {{ range $sha, $pipeline := .Pipelines }} - {{ if gt (len $pipeline.Statuses) 0 }} - - {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "RepoInfo" $.RepoInfo "Pipeline" $pipeline) }} - - {{ end }} - {{ end }} -{{ end }} diff --git a/appview/pages/templates/repo/fragments/pipelineStatuses.html b/appview/pages/templates/repo/fragments/pipelineStatuses.html new file mode 100644 index 00000000..39e9a65d --- /dev/null +++ b/appview/pages/templates/repo/fragments/pipelineStatuses.html @@ -0,0 +1,9 @@ +{{ define "repo/fragments/pipelineStatuses" }} + {{ $root := . }} + {{ range $sha, $pipeline := .Pipelines }} + {{ if gt (len $pipeline.Statuses) 0 }} + {{ $id := printf "pipeline-status-%s" $sha }} + {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "RepoInfo" $root.RepoInfo "Pipeline" $pipeline) }} + {{ end }} + {{ end }} +{{ end }} diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index 49b6fcd0..adcb7882 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -254,7 +254,7 @@ {{ end }} {{ end }} - + {{ end }} diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html index 0fb28f36..4d1e2dbf 100644 --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -72,7 +72,7 @@ - + @@ -151,7 +151,7 @@ {{ template "repo/fragments/shortTime" $commit.Committer.When }} - + {{ end }} diff --git a/appview/pages/templates/repo/pulls/fragments/pullStack.html b/appview/pages/templates/repo/pulls/fragments/pullStack.html index 786d9947..f4280e6e 100644 --- a/appview/pages/templates/repo/pulls/fragments/pullStack.html +++ b/appview/pages/templates/repo/pulls/fragments/pullStack.html @@ -34,7 +34,7 @@ {{ end }}