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

Fix package error handling and npm meta and empty repo guide (#33112)

This commit is contained in:
wxiaoguang
2025-01-06 14:17:28 +08:00
committed by GitHub
parent e637008fe3
commit 0fad40dd8c
10 changed files with 69 additions and 49 deletions

View File

@@ -17,7 +17,7 @@
{{if .Repository.IsBroken}}
<div class="ui segment center">{{ctx.Locale.Tr "repo.broken_message"}}</div>
{{else if .Repository.IsEmpty}}
{{else if .RepoHasContentsWithoutBranch}}
<div class="ui segment center">{{ctx.Locale.Tr "repo.no_branch"}}</div>
{{else if .CanWriteCode}}
<h4 class="ui top attached header">{{ctx.Locale.Tr "repo.quick_guide"}}</h4>