From cbd067e759b1de054da17c18f92fc934c10eacf8 Mon Sep 17 00:00:00 2001
From: 0ko <0ko@noreply.codeberg.org>
Date: Thu, 28 Mar 2024 19:48:56 +0500
Subject: [PATCH] Fix accessibility and translatability of repo explore
counters
Progression of: https://codeberg.org/forgejo/forgejo/commit/9e69ef9c51cded6321e4cca39d33a64e9801d910
Regression of: https://codeberg.org/forgejo/forgejo/commit/65e190ae8bd6c72d8701a58d67b256c87b92c189#diff-8d94e33cfe70fa6443d059b9c34e3f8064514816
---
templates/explore/repo_list.tmpl | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index 9e5042d65..99c9bc173 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -38,15 +38,15 @@
{{end}}
{{if not $.DisableStars}}
-
- {{svg "octicon-star" 16}}
- {{CountFmt .NumStars}}
+
+ {{svg "octicon-star" 16}}
+ {{if ge .NumStars 1000}}data-tooltip-content="{{.NumStars}}"{{end}}{{CountFmt .NumStars}}
{{end}}
{{if not $.DisableForks}}
-
- {{svg "octicon-git-branch" 16}}
- {{CountFmt .NumForks}}
+
+ {{svg "octicon-git-branch" 16}}
+ {{if ge .NumForks 1000}}data-tooltip-content="{{.NumForks}}"{{end}}{{CountFmt .NumForks}}
{{end}}