diff options
author | luxagraf <sng@luxagraf.net> | 2019-02-22 21:20:08 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-02-22 21:20:08 -0600 |
commit | 58e384afdf8022fd560d53583cd1d0c5e01f62aa (patch) | |
tree | 046c699b849db54e2873486156380cf73cfa68f1 /design/templates | |
parent | 6abb3efbda0afebb8022ec86c77cf39121d15ed2 (diff) |
rearranged book header material
Diffstat (limited to 'design/templates')
-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"> |