summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/package/shared/list.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl
index 3b3a1720ea..189b75b59e 100644
--- a/templates/package/shared/list.tmpl
+++ b/templates/package/shared/list.tmpl
@@ -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}}