1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-02 07:38:35 +00:00

Fix empty git repo handling logic (#33101)

Fix #33092
This commit is contained in:
wxiaoguang
2025-01-04 18:47:24 +08:00
committed by GitHub
parent 2b064b8637
commit 3d544a3ad3
6 changed files with 43 additions and 32 deletions

View File

@@ -162,7 +162,7 @@
</a>
{{end}}
{{if and .EnableActions (.Permission.CanRead ctx.Consts.RepoUnitTypeActions)}}
{{if and .EnableActions (.Permission.CanRead ctx.Consts.RepoUnitTypeActions) (not .IsEmptyRepo)}}
<a class="{{if .PageIsActions}}active {{end}}item" href="{{.RepoLink}}/actions">
{{svg "octicon-play"}} {{ctx.Locale.Tr "actions.actions"}}
{{if .Repository.NumOpenActionRuns}}