X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c30cd74f1f4dcf0bfbabb0e5a739bcdf236b4946..530238f609ba71ea112307ea66f0bc486ae11e33:/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 %}