fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix error handling.
[redakcja.git]
/
src
/
documents
/
templates
/
documents
/
book_detail.html
diff --git
a/src/documents/templates/documents/book_detail.html
b/src/documents/templates/documents/book_detail.html
index
a2dea02
..
08d8c36
100644
(file)
--- a/
src/documents/templates/documents/book_detail.html
+++ b/
src/documents/templates/documents/book_detail.html
@@
-200,7
+200,7
@@
</div>
</div>
- {% if
doc
%}
+ {% if
stats
%}
<div class="card mt-4">
<div class="card-header">
<h2>{% trans "Statistics" %}</h2>
<div class="card mt-4">
<div class="card-header">
<h2>{% trans "Statistics" %}</h2>
@@
-221,9
+221,7
@@
</tr>
</thead>
<tbody>
</tr>
</thead>
<tbody>
- {% with stats=doc.get_statistics %}
- {% include 'documents/book_stats.html' with book=doc stats=stats depth=0 %}
- {% endwith %}
+ {% include 'documents/book_stats.html' with book=doc stats=stats depth=0 %}
</tbody>
</table>
</div>
</tbody>
</table>
</div>