summaryrefslogtreecommitdiff
path: root/design/templates/details/book.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-10-15 21:01:17 -0400
committerluxagraf <sng@luxagraf.net>2015-10-15 21:01:17 -0400
commit954830a51fa906c6b16941fd39675c8439ba7351 (patch)
tree12da95f31959f73eb8faa1766339cf21955fe659 /design/templates/details/book.html
parente0de7a6c08bbbd31fae2e7b796457a982cb3e895 (diff)
polished up the books section a bit
Diffstat (limited to 'design/templates/details/book.html')
-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>