Fix empty list message on search page
authorr@freesoftwareextremist.com <r@freesoftwareextremist.com>
Sat, 22 Aug 2020 06:48:13 +0000 (06:48 +0000)
committerr <r@freesoftwareextremist.com>
Sat, 22 Aug 2020 07:42:48 +0000 (07:42 +0000)
templates/search.tmpl
templates/usersearch.tmpl

index f81c0613487f1f319156c2ab763b298f221c3d82..a9aa0af8cbf1e8e74a7edc71ec8c0bbfe52d6d99 100644 (file)
@@ -21,7 +21,7 @@
 {{range .Statuses}}
 {{template "status.tmpl" (WithContext . $.Ctx)}}
 {{else}}
-<div class="no-data-found">No data found</div>
+{{if .Q}}<div class="no-data-found">No data found</div>{{end}}
 {{end}}
 {{end}}
 
index 26186c0bbc20bec0012522eb51fcfabbe16e239a..a44b67911fc625e35f246d17dd10fc5b78c46099 100644 (file)
@@ -13,7 +13,7 @@
 {{range .Statuses}}
 {{template "status.tmpl" (WithContext . $.Ctx)}}
 {{else}}
-<div class="no-data-found">No data found</div>
+{{if .Q}}<div class="no-data-found">No data found</div>{{end}}
 {{end}}
 
 <div class="pagination">