From 27b1e88388eee191bc0628a844a5f65e383ae7a5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 3 Apr 2021 10:04:02 -0400 Subject: books: fixed a bug in template and added a conditional for the affiliate disclaimer --- app/books/templates/books/book_detail.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/books') 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 %} {%endif%} -

When you buy a book using the link above, I may earn a small affiliate commission.

+ {% if object.afflink %} +

When you buy a book using the link above, I may earn a small affiliate commission.

{%endif%} {% endblock %} -- cgit v1.2.3-70-g09d2