diff --git a/appview/pages/templates/repo/fragments/commitPipelineStatuses.html b/appview/pages/templates/repo/fragments/commitPipelineStatuses.html new file mode 100644 index 00000000..2069278c --- /dev/null +++ b/appview/pages/templates/repo/fragments/commitPipelineStatuses.html @@ -0,0 +1,9 @@ +{{ 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/index.html b/appview/pages/templates/repo/index.html index d60707dc..81f70873 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -224,7 +224,7 @@ -
+
{{ $verified := $.VerifiedCommits.IsVerified .Hash.String }} {{ $hashStyle := "text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-900" }} {{ if $verified }} @@ -240,36 +240,33 @@ {{ end }} - {{ template "attribution" (list . $.EmailToDid) }} -
{{ template "repo/fragments/time" .Committer.When }} {{ $tagsForCommit := index $.TagMap .Hash.String }} {{ if gt (len $tagsForCommit) 0 }} -
- {{ end }} - {{ range $tagsForCommit }} - - {{ . }} - - {{ end }} - - - {{ $pipeline := index $.Pipelines .Hash.String }} - {{ if $pipeline }} - {{ if gt (len $pipeline.Statuses) 0 }} -
- {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "RepoInfo" $.RepoInfo "Pipeline" $pipeline) }} + + {{ range $tagsForCommit }} + + {{ . }} + {{ end }} + {{ end }} +
{{ end }} + {{ if and $.CommitsTrunc $.RepoInfo.Spindle }} + + {{ end }} {{ end }} diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html index 3e4e8111..0fb28f36 100644 --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -72,12 +72,7 @@ - {{ $pipeline := index $.Pipelines .Hash.String }} - {{ if $pipeline }} - {{ if gt (len $pipeline.Statuses) 0 }} - {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "Pipeline" $pipeline "RepoInfo" $.RepoInfo) }} - {{ end }} - {{ end }} + @@ -136,7 +131,7 @@ -
+
{{ $verified := $.VerifiedCommits.IsVerified $commit.Hash.String }} {{ $hashStyle := "text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-900" }} {{ if $verified }} @@ -152,25 +147,24 @@ {{ end }} - {{ template "attribution" (list $commit $.EmailToDid) }} -
{{ template "repo/fragments/shortTime" $commit.Committer.When }} - {{ $pipeline := index $.Pipelines .Hash.String }} - {{ if $pipeline }} - {{ if gt (len $pipeline.Statuses) 0 }} -
- - {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "Pipeline" $pipeline "RepoInfo" $.RepoInfo) }} - - {{ end }} - {{ end }} +
{{ end }} + + {{ if and .Commits .RepoInfo.Spindle }} + + {{ end }} {{ end }} diff --git a/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html b/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html index 6a08ddd6..00a22159 100644 --- a/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html +++ b/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html @@ -21,4 +21,4 @@ {{ template "repo/pipelines/fragments/tooltip" $ }} -{{ end }} \ No newline at end of file +{{ end }}