diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html index 98b46399..8eaab8e3 100644 --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -71,7 +71,7 @@
{{ if $.Pipeline }} - {{ template "repo/pipelines/fragments/pipelineSymbolLong" $.Pipeline }} + {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "Pipeline" $.Pipeline "RepoInfo" $.RepoInfo) }} {{ end }}
diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index 87740333..a883f23f 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -275,7 +275,7 @@ {{ $pipeline := index $.Pipelines .Hash.String }} {{ if and $pipeline (gt (len $pipeline.Statuses) 0) }}
- {{ template "repo/pipelines/fragments/pipelineSymbolLong" $pipeline }} + {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "RepoInfo" $.RepoInfo "Pipeline" $pipeline) }} {{ end }} diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html index dc7c5f1c..793cb4a5 100644 --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -84,7 +84,7 @@ {{ $pipeline := index $.Pipelines .Hash.String }} {{ if and $pipeline (gt (len $pipeline.Statuses) 0) }} - {{ template "repo/pipelines/fragments/pipelineSymbolLong" $pipeline }} + {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "Pipeline" $pipeline "RepoInfo" $.RepoInfo) }} {{ end }} {{ timeFmt $commit.Committer.When }} @@ -170,7 +170,7 @@ {{ if and $pipeline (gt (len $pipeline.Statuses) 0) }}
- {{ template "repo/pipelines/fragments/pipelineSymbolLong" $pipeline }} + {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "Pipeline" $pipeline "RepoInfo" $.RepoInfo) }} {{ end }} diff --git a/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html b/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html index 3acc4d2e..ce20e415 100644 --- a/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html +++ b/appview/pages/templates/repo/pipelines/fragments/pipelineSymbolLong.html @@ -1,8 +1,12 @@ {{ define "repo/pipelines/fragments/pipelineSymbolLong" }} -
- {{ template "repo/pipelines/fragments/pipelineSymbol" $ }} - {{ template "repo/pipelines/fragments/tooltip" $ }} + {{ $pipeline := .Pipeline }} + {{ $repoinfo := .RepoInfo }} +
+
+ + {{ template "repo/pipelines/fragments/pipelineSymbol" .Pipeline }} + + {{ template "repo/pipelines/fragments/tooltip" $ }} +
{{ end }} - - diff --git a/appview/pages/templates/repo/pipelines/fragments/tooltip.html b/appview/pages/templates/repo/pipelines/fragments/tooltip.html index ce3ca10a..e9a62036 100644 --- a/appview/pages/templates/repo/pipelines/fragments/tooltip.html +++ b/appview/pages/templates/repo/pipelines/fragments/tooltip.html @@ -1,28 +1,33 @@ {{ define "repo/pipelines/fragments/tooltip" }} -