diff --git a/cps/templates/detail.html b/cps/templates/detail.html index ca5a0b4f..9f210e68 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -4,8 +4,10 @@
- {% if entry.has_cover is defined %} + {% if entry.has_cover %} + {% else %} + {% endif %}
diff --git a/cps/templates/edit_book.html b/cps/templates/edit_book.html index e4bc7e0b..90cda322 100644 --- a/cps/templates/edit_book.html +++ b/cps/templates/edit_book.html @@ -3,8 +3,10 @@ {% if book %}
- {% if book.has_cover is defined %} + {% if book.has_cover %} + {% else %} + {% endif %}
diff --git a/cps/templates/index.html b/cps/templates/index.html index dce32e99..50755bbf 100755 --- a/cps/templates/index.html +++ b/cps/templates/index.html @@ -8,11 +8,13 @@ {% for entry in random %}
- {% if entry.has_cover is defined %} - + {% if entry.has_cover %} + + {% else %} + + {% endif %} - {% endif %}

{{entry.title|shortentitle}}

@@ -41,11 +43,13 @@ {% for entry in entries %}
- {% if entry.has_cover is defined %} - + {% if entry.has_cover %} + + {% else %} + + {% endif %} - {% endif %}

{{entry.title|shortentitle}}