aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-08-11 19:08:05 +0200
committerGitHub <noreply@github.com>2023-08-11 13:08:05 -0400
commitf3fbb7c67d21c01a58653c7ef9ae0e80dbb4becd (patch)
tree8989d303f376193c50db1eaec57caa1b89e33fff /templates/org
parent7e382a55558d4a8719e8493de5455883a2003759 (diff)
downloadgitea-f3fbb7c67d21c01a58653c7ef9ae0e80dbb4becd.tar.gz
gitea-f3fbb7c67d21c01a58653c7ef9ae0e80dbb4becd.zip
Count only visible repos on profile (#25928)
Fixes #25914
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/menu.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl
index 6492e5e668..a4f602730a 100644
--- a/templates/org/menu.tmpl
+++ b/templates/org/menu.tmpl
@@ -2,8 +2,8 @@
<div class="ui secondary stackable pointing menu">
<a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}">
{{svg "octicon-repo"}} {{.locale.Tr "user.repositories"}}
- {{if .ContextUser.NumRepos}}
- <div class="ui small label">{{.ContextUser.NumRepos}}</div>
+ {{if .RepoCount}}
+ <div class="ui small label">{{.RepoCount}}</div>
{{end}}
</a>
{{if .CanReadProjects}}