diff options
author | Alec Warner <antarus@gentoo.org> | 2021-01-27 09:05:58 -0800 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2021-01-27 09:05:58 -0800 |
commit | f553a65689cd07e4df6ecadd9ec48cd072ee7f05 (patch) | |
tree | 2360947040ab95b62ca56427ef90023a80a42d04 | |
parent | Downgrade to docker-compose file version 2.4. (diff) | |
download | soko-f553a65689cd07e4df6ecadd9ec48cd072ee7f05.tar.gz soko-f553a65689cd07e4df6ecadd9ec48cd072ee7f05.tar.bz2 soko-f553a65689cd07e4df6ecadd9ec48cd072ee7f05.zip |
Update results page for useflags search.
Whissi pointed out that when you search for a term and no results
are printed, it means we never say 'no results found'.
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r-- | web/templates/useflags/search.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/templates/useflags/search.tmpl b/web/templates/useflags/search.tmpl index 528f101..7f86718 100644 --- a/web/templates/useflags/search.tmpl +++ b/web/templates/useflags/search.tmpl @@ -35,7 +35,8 @@ </form> </div> - {{if .Useflags}} + {{if .Search}} + {{if .Useflags}} <h2>USE Flag Search Results <small>for {{ .Search }}</small></h2> <div class="card border-0"> @@ -48,8 +49,9 @@ {{end}} </div> </div> - {{end}} - + {{else}} + <h2>No results found <small> for {{ .Search }}</small></h2> + {{end}} </div> </div> |