mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Show hint to link package to repo when viewing empty repo package list (#20504)
* show hint to link package to repo on empty repo package listing * reword
This commit is contained in:
@ -47,6 +47,10 @@
|
||||
<div class="empty center">
|
||||
{{svg "octicon-package" 32}}
|
||||
<h2>{{.locale.Tr "packages.empty"}}</h2>
|
||||
{{if and .Repository .CanWritePackages}}
|
||||
{{$packagesUrl := URLJoin .Owner.HTMLURL "-" "packages" }}
|
||||
<p>{{.locale.Tr "packages.empty.repo" $packagesUrl | Safe}}</p>
|
||||
{{end}}
|
||||
<p>{{.locale.Tr "packages.empty.documentation" | Safe}}</p>
|
||||
</div>
|
||||
{{else}}
|
||||
|
Reference in New Issue
Block a user