From ec7d5b17ab82c2681e9332f63eb6bcf60a822f0b Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 12 May 2020 16:32:26 +0200 Subject: [PATCH] Added table view for books --- cps/templates/book_table.html | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 cps/templates/book_table.html diff --git a/cps/templates/book_table.html b/cps/templates/book_table.html new file mode 100644 index 00000000..c8149f03 --- /dev/null +++ b/cps/templates/book_table.html @@ -0,0 +1,59 @@ +{% extends "layout.html" %} +{% block body %} +

{{_(title)}}

+ + +
+
+ {% for entry in entries %} + {% if loop.index0 == (loop.length/2+loop.length%2)|int and loop.length > 20 %} +
+ +
+{% endblock %} +{% block js %} + +{% endblock %}