aboutsummaryrefslogtreecommitdiffstats
path: root/templates/package/shared/list.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/package/shared/list.tmpl')
-rw-r--r--templates/package/shared/list.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl
index 7cc11b073e..afa360fd93 100644
--- a/templates/package/shared/list.tmpl
+++ b/templates/package/shared/list.tmpl
@@ -12,8 +12,9 @@
<button class="ui primary button">{{.locale.Tr "explore.search"}}</button>
</div>
</form>
-<div class="{{if .PackageDescriptors}}flex-list{{end}} gt-pt-4">
+<div>
{{range .PackageDescriptors}}
+ <div class="flex-list">
<div class="flex-item">
<div class="flex-item-main">
<div class="flex-item-title">
@@ -34,6 +35,7 @@
</div>
</div>
</div>
+ </div>
{{else}}
{{if not .HasPackages}}
<div class="empty center">
@@ -46,7 +48,7 @@
<p>{{.locale.Tr "packages.empty.documentation" "https://docs.gitea.com/usage/packages/overview/" | Safe}}</p>
</div>
{{else}}
- <p>{{.locale.Tr "packages.filter.no_result"}}</p>
+ <p class="gt-py-4">{{.locale.Tr "packages.filter.no_result"}}</p>
{{end}}
{{end}}
{{template "base/paginate" .}}