diff options
Diffstat (limited to 'design/templates/details/book.html')
-rw-r--r-- | design/templates/details/book.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html index 6d09186..101dd0d 100644 --- a/design/templates/details/book.html +++ b/design/templates/details/book.html @@ -16,19 +16,19 @@ </div> <div class="meta-cover"> <dl class="book-metadata"> - {% if object.publish_date %}<dt>Published</dt> - <dd>{%if object.publish_place%}{{object.publish_place}}, {%endif%}{{object.publish_date}}</dd>{%endif%} - {% if object.pages %}<dt>Pages</dt> - <dd>{{object.pages}}</dd>{%endif%} - {% if object.isbn %}<dt>ISBN</dt> - <dd>{{object.isbn}}</dd>{%endif%} + {% if object.rating %}<dt>Rating</dt><dd class="book-stars" itemprop="reviewRating"> {% for i in object.ratings_range %}{% if i <= object.get_rating%}★{%else%}☆{%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.rating %}<dt>Rating</dt><dd class="book-stars" itemprop="reviewRating"> {% for i in object.ratings_range %}{% if i <= object.get_rating%}★{%else%}☆{%endif%}{%endfor%}</dd>{%endif%} - {% if object.read_in %}<dt>Read</dt> - <dd>{{object.read_in}}</dd>{%endif%} + {% if object.pages %}<dt>Pages</dt> + <dd>{{object.pages}}</dd>{%endif%} + {% if object.publish_date %}<dt>Published</dt> + <dd>{%if object.publish_place%}{{object.publish_place}}, {%endif%}{{object.publish_date}}</dd>{%endif%} + {% if object.isbn %}<dt>ISBN</dt> + <dd>{{object.isbn}}</dd>{%endif%} </dl> </div>{%if object.body_html%} <div class="thoughts" itemprop="review" itemscope itemtype="http://schema.org/Review"> |