From 530238f609ba71ea112307ea66f0bc486ae11e33 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 20 Dec 2021 12:56:44 +0100 Subject: [PATCH] missing tmpl --- .../templates/documents/book_stats.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/documents/templates/documents/book_stats.html diff --git a/src/documents/templates/documents/book_stats.html b/src/documents/templates/documents/book_stats.html new file mode 100644 index 00000000..084627f0 --- /dev/null +++ b/src/documents/templates/documents/book_stats.html @@ -0,0 +1,19 @@ + + {{ book.book_info.title|default:"???" }} + {{ stats.self.chars|default_if_none:"?" }} + {{ stats.self.words|default_if_none:"?" }} + {{ stats.self.chars_with_fn|default_if_none:"?" }} + {{ stats.self.words_with_fn|default_if_none:"?" }} + +{% if stats.parts %} + {% for part, partstats in stats.parts %} + {% include 'documents/book_stats.html' with book=part stats=partstats depth=depth|add:1 %} + {% endfor %} + + Σ + {{ stats.total.chars }} + {{ stats.total.words }} + {{ stats.total.chars_with_fn }} + {{ stats.total.words_with_fn }} + +{% endif %} -- 2.20.1