No results display in /nojs

Shows a link to reset filter if there are no books.
This commit is contained in:
Nikhil Tanwar
2023-02-27 23:54:53 +05:30
parent cc35fe503f
commit 951e15c665
6 changed files with 26 additions and 6 deletions

View File

@ -90,6 +90,24 @@
</form>
</div>
<div class="kiwixHomeBody">
{{#noResults}}
<style>
.book__list {
display: none;
}
.kiwixHomeBody {
justify-content: center;
}
.noResults {
font-size: 16px;
font-family: roboto;
}
</style>
<div class="noResults">
{{{translations.welcome-page-overzealous-filter}}}
</div>
</style>
{{/noResults}}
<div class="book__list">
<h3 class="kiwixHomeBody__results">{{translations.count-of-matching-books}}</h3>
{{#books}}