From af9f2096c7e347c1fce261f05555118c6fd3d4ae Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Tue, 5 Aug 2025 11:24:07 +0100 Subject: [PATCH] appview/pages: minor style changes to repo index make commit/branch/tag count always visible Signed-off-by: oppiliappan --- appview/pages/templates/repo/index.html | 30 ++++++++----------------- appview/pages/templates/repo/log.html | 4 ++-- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index 817b3561..1bb8bbdd 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -170,13 +170,9 @@ {{ define "commitLog" }}
@@ -278,13 +274,9 @@ {{ define "branchList" }} {{ if gt (len .BranchesTrunc) 0 }}
- -
- {{ i "git-branch" "w-4 h-4" }} branches -
- +
+ {{ i "git-branch" "w-4 h-4" }} branches + {{ len .Branches }}
{{ range .BranchesTrunc }} @@ -321,13 +313,9 @@ {{ if gt (len .TagsTrunc) 0 }}
diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html index 89572377..ae9f9d76 100644 --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -21,7 +21,7 @@
Commit
Message
-
Date
+
Date
{{ range $index, $commit := .Commits }} {{ $messageParts := splitN $commit.Message "\n\n" 2 }} @@ -85,7 +85,7 @@ {{ template "repo/pipelines/fragments/pipelineSymbolLong" (dict "Pipeline" $pipeline "RepoInfo" $.RepoInfo) }} {{ end }}
-
{{ template "repo/fragments/shortTimeAgo" $commit.Committer.When }}
+
{{ template "repo/fragments/shortTimeAgo" $commit.Committer.When }}
{{ end }}
-- 2.51.2