From 9e69ef9c51cded6321e4cca39d33a64e9801d910 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Mon, 11 Mar 2024 17:58:51 +0100 Subject: [PATCH] Label stars/forks link in repo explore --- options/locale/locale_en-US.ini | 4 ++++ templates/explore/repo_list.tmpl | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index b6279d092e..f4e2d7a9c0 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -357,6 +357,10 @@ issues.in_your_repos = In your repositories [explore] repos = Repositories users = Users +stars_one = %d star +stars_few = %d stars +forks_one = %d fork +forks_few = %d forks organizations = Organizations search = Search go_to = Go to diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index 848afd305c..0c466dffaf 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -37,10 +37,10 @@ {{end}} {{if not $.DisableStars}} - {{svg "octicon-star" 16}}{{.NumStars}} + {{svg "octicon-star" 16}}{{.NumStars}} {{end}} {{if not $.DisableForks}} - {{svg "octicon-git-branch" 16}}{{.NumForks}} + {{svg "octicon-git-branch" 16}}{{.NumForks}} {{end}}