summaryrefslogtreecommitdiff
path: root/design/templates
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-11-10 09:23:48 -0500
committerluxagraf <sng@luxagraf.net>2019-11-10 09:23:48 -0500
commita6d2964846dc827dbf291d14db9cc7745cdc6fd0 (patch)
treefd2af646821e698010f035bde5b343d2b4c4be5f /design/templates
parenta968aaa8dcbc7465b774bba159e74f71bf7858f3 (diff)
added buy and borrow buttons to books
Diffstat (limited to 'design/templates')
-rw-r--r--design/templates/details/book.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html
index 101dd0d..f7bba47 100644
--- a/design/templates/details/book.html
+++ b/design/templates/details/book.html
@@ -19,10 +19,6 @@
{% if object.rating %}<dt>Rating</dt><dd class="book-stars" itemprop="reviewRating"> {% for i in object.ratings_range %}{% if i <= object.get_rating%}&#9733;{%else%}&#9734;{%endif%}{%endfor%}</dd>{%endif%}
{% if object.read_in %}<dt>Read</dt>
<dd>{{object.read_in}}</dd>{%endif%}
- {% if object.afflink %}<dt>Buy</dt>
- <dd><a href="{{object.afflink}}" title="buy {{object.title}} at Amazon">Amzn</a></dd>{%endif%}
- {% if object.isbn %}<dt>Borrow</dt>
- <dd><a href="http://worldcat.org/isbn/{{object.isbn}}" title="find {{object.title}} in your local library">WorldCat</a></dd>{%endif%}
{% if object.pages %}<dt>Pages</dt>
<dd>{{object.pages}}</dd>{%endif%}
{% if object.publish_date %}<dt>Published</dt>
@@ -30,6 +26,10 @@
{% if object.isbn %}<dt>ISBN</dt>
<dd>{{object.isbn}}</dd>{%endif%}
</dl>
+ <div class="buy-btn-wrapper">
+ {% if object.afflink %}<a class="buy-btn" href="{{object.afflink}}" title="buy {{object.title}} at Amazon">Buy Now</a>{%endif%}
+ {% if object.isbn %}<a class="buy-btn" href="http://worldcat.org/isbn/{{object.isbn}}" title="find {{object.title}} in your local library">Borrow</a>{%endif%}
+ </div>
</div>{%if object.body_html%}
<div class="thoughts" itemprop="review" itemscope itemtype="http://schema.org/Review">
<h5>Notes</h5>