summaryrefslogtreecommitdiffstats
path: root/templates/explore
diff options
context:
space:
mode:
authorGusted <gusted@noreply.codeberg.org>2024-03-20 09:20:32 +0100
committerGusted <gusted@noreply.codeberg.org>2024-03-20 09:20:32 +0100
commitb06110715cc34d3840ccdf570dcc884cb2958c26 (patch)
treed5cf8a03ea8a608e2fdd0aa0ef210907e489326a /templates/explore
parentMerge pull request '[gitea] week 12 cherry-pick' (#2679) from algernon/forgej... (diff)
parentLabel stars/forks link in repo explore (diff)
downloadforgejo-b06110715cc34d3840ccdf570dcc884cb2958c26.tar.xz
forgejo-b06110715cc34d3840ccdf570dcc884cb2958c26.zip
Merge pull request 'Accessibility: Label Stars/Forks links in repo explore' (#2634) from fnetx/explore-label into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/2634 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Diffstat (limited to 'templates/explore')
-rw-r--r--templates/explore/repo_list.tmpl4
1 files changed, 2 insertions, 2 deletions
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 @@
</a>
{{end}}
{{if not $.DisableStars}}
- <a class="text grey flex-text-inline" href="{{.Link}}/stars">{{svg "octicon-star" 16}}{{.NumStars}}</a>
+ <a class="text grey flex-text-inline" href="{{.Link}}/stars" aria-label="{{ctx.Locale.TrN .NumStars "explore.stars_one" "explore.stars_few" .NumStars}}">{{svg "octicon-star" 16}}{{.NumStars}}</a>
{{end}}
{{if not $.DisableForks}}
- <a class="text grey flex-text-inline" href="{{.Link}}/forks">{{svg "octicon-git-branch" 16}}{{.NumForks}}</a>
+ <a class="text grey flex-text-inline" href="{{.Link}}/forks" aria-label="{{ctx.Locale.TrN .NumForks "explore.forks_one" "explore.forks_few" .NumForks}}">{{svg "octicon-git-branch" 16}}{{.NumForks}}</a>
{{end}}
</div>
</div>