summaryrefslogtreecommitdiff
path: root/design/templates/details
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates/details')
-rw-r--r--design/templates/details/book.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/design/templates/details/book.html b/design/templates/details/book.html
index 46ac10b..6524885 100644
--- a/design/templates/details/book.html
+++ b/design/templates/details/book.html
@@ -3,22 +3,24 @@
{%block bodyid%}id="book-page"{%endblock%}
{% block primary %}<ul class="bl" id="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<li><a href="/" title="luxagraf homepage" itemprop="url"><span itemprop="title">Home</span></a> &rarr; </li>
- <li>Readings</li>
+ <li><a href="/books/" title="books" itemprop="url"><span itemprop="title">books</span></a> &rarr; </li>
</ul>
<main role="main" itemprop="mainEntity" itemscope itemtype="http://schema.org/Book">
<h1 class="book-title" itemprop="name">{{object.title|smartypants|widont|safe}}</h1>
+ <div class="book-cover-wrapper"><img src="{{object.get_image_url}}" alt="{{object.title}} cover" /></div>
<div class="meta-cover">
- <img src="{{object.get_image_url}}" alt="{{object.title}} cover" class="book-cover" />
- <h5>Meta</h5>
<dl class="book-metadata">
<dt>Author</dt>
- <dd>{{object.author_name}}<dd>
- {% if object.publish_place %}<dt>Published</dt>
- <dd>{{object.publish_place}}{%endif%}{%if object.publish_date%}, {{object.publish_date}}</dd>{%endif%}
+ <dd>{{object.author_name}}</dd>
+ {% 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.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 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%}
</dl>