diff options
author | r <r@freesoftwareextremist.com> | 2020-02-26 16:31:49 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-02-26 16:31:49 +0000 |
commit | 35a8c247d910f4a17aea5dd9df511f6e44bbc4bf (patch) | |
tree | bcb50154f78c65c4418137287b902f17f8e5c3f1 | |
parent | d5230852cf4da238a0d3acb219f9049e9d669969 (diff) | |
download | bloat-35a8c247d910f4a17aea5dd9df511f6e44bbc4bf.tar.gz bloat-35a8c247d910f4a17aea5dd9df511f6e44bbc4bf.zip |
Display empty list message
-rw-r--r-- | static/style.css | 6 | ||||
-rw-r--r-- | templates/search.tmpl | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/static/style.css b/static/style.css index a647d4f..83250af 100644 --- a/static/style.css +++ b/static/style.css @@ -426,7 +426,7 @@ a:hover, } .search-form { - margin: 16px 0 0 0; + margin: 16px 0 16px 0; } .more-container { @@ -473,6 +473,10 @@ a:hover, margin-right: 8px; } +.no-data-found { + margin: 12px 0; +} + .dark { background-color: #222222; background-image: none; diff --git a/templates/search.tmpl b/templates/search.tmpl index ede147e..560a2c9 100644 --- a/templates/search.tmpl +++ b/templates/search.tmpl @@ -20,6 +20,8 @@ {{if eq .Type "statuses"}} {{range .Statuses}} {{template "status.tmpl" (WithContext . $.Ctx)}} +{{else}} +<div class="no-data-found">No data found</div> {{end}} {{end}} |