summaryrefslogtreecommitdiff
path: root/app/books
diff options
context:
space:
mode:
Diffstat (limited to 'app/books')
-rw-r--r--app/books/templates/books/book_detail.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/books/templates/books/book_detail.html b/app/books/templates/books/book_detail.html
index 6304562..2f31103 100644
--- a/app/books/templates/books/book_detail.html
+++ b/app/books/templates/books/book_detail.html
@@ -51,7 +51,8 @@
{% endif %}{% endfor %}
</div>
{%endif%}
- <p class="small dis"><em>When you buy a book using the link above, I may earn a small affiliate commission.</em></p>
+ {% if object.afflink %}
+ <p class="small dis"><em>When you buy a book using the link above, I may earn a small affiliate commission.</em></p>{%endif%}
</div>
</main>
{% endblock %}