diff --git a/src/core/views.py b/src/core/views.py
index b23cd19..8fdf636 100644
--- a/src/core/views.py
+++ b/src/core/views.py
@@ -35,11 +35,13 @@ def index(request: HttpRequest):
localbooks = [book for book in books if searchParam in book.title]
# return base view
+ # TODO pagination
context = {
'title': 'epub2go',
'http_host': f'http://{ request.META['HTTP_HOST'] }',
'books': localbooks,
- 'book_count': len(books),
+ 'books_count': len(localbooks),
+ 'allbooks_count': len(books),
'allbooks_url': allbooks_url,
}
return render(request, 'home.html', context)
diff --git a/src/epub2go_web/templates/home.html b/src/epub2go_web/templates/home.html
index 9bd682f..021e235 100644
--- a/src/epub2go_web/templates/home.html
+++ b/src/epub2go_web/templates/home.html
@@ -8,7 +8,7 @@
- Im Moment finden sich hier {{ book_count }} Bücher.
+ Im Moment finden sich hier {{ allbooks_count }} Bücher.
@@ -45,5 +45,6 @@
{% endfor %}
+ {{ books_count }} Ergebnisse gefunden
{% endblock %}
\ No newline at end of file