From 35a8c247d910f4a17aea5dd9df511f6e44bbc4bf Mon Sep 17 00:00:00 2001 From: r Date: Wed, 26 Feb 2020 16:31:49 +0000 Subject: [PATCH] Display empty list message --- static/style.css | 6 +++++- templates/search.tmpl | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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}} +
No data found
{{end}} {{end}}