From 53d99ae72f5b5022c9c84fda9bf816f19be4796b Mon Sep 17 00:00:00 2001 From: Andromeda Yelton Date: Tue, 20 Mar 2012 09:52:57 -0400 Subject: [PATCH] addressing https://www.pivotaltracker.com/story/show/26590795 --- frontend/templates/book_panel.html | 2 +- frontend/templates/home.html | 2 ++ frontend/templates/supporter.html | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/templates/book_panel.html b/frontend/templates/book_panel.html index 3fdb5f68..ce6f16fb 100644 --- a/frontend/templates/book_panel.html +++ b/frontend/templates/book_panel.html @@ -54,7 +54,7 @@ {% comment %}status of book vis-a-vis user's wishlist{% endcomment %} - {% if works %} + {% if works and activetab %}
Add to Wishlist
diff --git a/frontend/templates/home.html b/frontend/templates/home.html index 9bb24f18..e0a76d43 100755 --- a/frontend/templates/home.html +++ b/frontend/templates/home.html @@ -170,9 +170,11 @@
{% for work in works %} + {% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
+ {% endwith %} {% endfor %}
diff --git a/frontend/templates/supporter.html b/frontend/templates/supporter.html index bce3ce80..82e1eafe 100644 --- a/frontend/templates/supporter.html +++ b/frontend/templates/supporter.html @@ -296,9 +296,11 @@ there's no tab for seeing ALL my books, only the filters! huh.
{% for work in works %} + {% with work.googlebooks_id as googlebooks_id %}
{% include "book_panel.html" %}
+ {% endwith %} {% endfor %}