fix
[redakcja.git] / src / documents / templates / documents / book_stats.html
1 <tr>
2   <td style="padding-left: {{ depth}}.75em;">
3     {{ book.meta.title|default:"???" }}
4   </td>
5   {% if stats.error %}
6     <td colspan="6">
7       {{ stats.error }}
8     </td>
9   {% else %}
10     <td>{{ stats.self.chars|default_if_none:"?" }}</td>
11     <td>{{ stats.self.chars_with_fn|default_if_none:"?" }}</td>
12     <td>{{ stats.self.words|default_if_none:"?" }}</td>
13     <td>{{ stats.self.words_with_fn|default_if_none:"?" }}</td>
14     <td>{{ stats.self.verses|default_if_none:"?" }} <small>+ {{ stats.self.chars_out_verse|default_if_none:"?" }} zn.</small></td>
15     <td>{{ stats.self.verses_with_fn|default_if_none:"?" }} <small> + {{ stats.self.chars_out_verse_with_fn|default_if_none:"?" }} zn.</small></td>
16   {% endif %}
17 </tr>
18 {% if stats.parts %}
19   {% for part, partstats in stats.parts %}
20     {% include 'documents/book_stats.html' with book=part stats=partstats depth=depth|add:1 %}
21   {% endfor %}
22   <tr>
23     <td style="padding-left: {{ depth}}.75em;">&Sigma;</td>
24     <td>{{ stats.total.chars }}</td>
25     <td>{{ stats.total.chars_with_fn }}</td>
26     <td>{{ stats.total.words }}</td>
27     <td>{{ stats.total.words_with_fn }}</td>
28
29     <td>{{ stats.total.verses }} <small>+ {{ stats.total.chars_out_verse }} zn.</small></td>
30     <td>{{ stats.total.verses_with_fn }} <small> + {{ stats.total.chars_out_verse_with_fn }} zn.</small></td>
31
32   </tr>
33 {% endif %}