diff options
author | luxagraf <sng@luxagraf> | 2021-04-03 10:04:02 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-04-03 10:04:02 -0400 |
commit | 27b1e88388eee191bc0628a844a5f65e383ae7a5 (patch) | |
tree | 18a878781a285cb7db16bfdc3a8740a92153c7b0 /app/books | |
parent | f79cf2bc02bb560cc0d6cee4688366960ed7c5a1 (diff) |
books: fixed a bug in template and added a conditional for the affiliate
disclaimer
Diffstat (limited to 'app/books')
-rw-r--r-- | app/books/templates/books/book_detail.html | 3 |
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 %} |