diff options
author | r@freesoftwareextremist.com <r@freesoftwareextremist.com> | 2020-08-22 06:48:13 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-08-22 07:42:48 +0000 |
commit | 9cd9e8bc7c9713cf574f809668f09acbb6284a0d (patch) | |
tree | 9101598f4f2681dce39b81bd124090a65e01b7c8 /templates | |
parent | b5758986c6b2fd126506a280f07b0a8c3574026c (diff) | |
download | bloat-9cd9e8bc7c9713cf574f809668f09acbb6284a0d.tar.gz bloat-9cd9e8bc7c9713cf574f809668f09acbb6284a0d.zip |
Fix empty list message on search page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/search.tmpl | 2 | ||||
-rw-r--r-- | templates/usersearch.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/search.tmpl b/templates/search.tmpl index f81c061..a9aa0af 100644 --- a/templates/search.tmpl +++ b/templates/search.tmpl @@ -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}} diff --git a/templates/usersearch.tmpl b/templates/usersearch.tmpl index 26186c0..a44b679 100644 --- a/templates/usersearch.tmpl +++ b/templates/usersearch.tmpl @@ -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"> |