add favicon, reverse page titles
[redakcja.git] / apps / wiki / templates / wiki / document_details_base.html
index 8cd603b..00c4f6a 100644 (file)
@@ -1,7 +1,7 @@
 {% extends "base.html" %}
 {% load toolbar_tags i18n %}
 
-{% block titleextra %}{{ chunk.pretty_title }}{% endblock %}
+{% block titleextra %}{% if chunk.pretty_title %}{{ chunk.pretty_title }}{% else %}{{ chunk.book.title }}{% endif %}{% endblock %}
 {% block extrahead %}
 {% load pipeline %}
 {% stylesheet 'detail' %}