summaryrefslogtreecommitdiff
path: root/design
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-11-08 20:24:26 -0500
committerluxagraf <sng@luxagraf.net>2015-11-08 20:24:26 -0500
commit7e8fefe7f3c5aee31c4e7231e5fed21d34ed0cb6 (patch)
tree65eec2f77b579ad4127f8d7d9a799d9f3bcc6f4e /design
parent76c0bf31bf4a21fcf18df8579dbb6f660c4d7437 (diff)
Updated books app to use new CBVs and urls, also brought everything up
to PEP 8 styles
Diffstat (limited to 'design')
-rw-r--r--design/templates/archives/books.html2
-rw-r--r--design/templates/details/book.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/archives/books.html b/design/templates/archives/books.html
index 980a4b7..1c139e6 100644
--- a/design/templates/archives/books.html
+++ b/design/templates/archives/books.html
@@ -25,7 +25,7 @@
<h2 itemprop="name"><a href="{{object.get_absolute_url}}">{{object.title|amp|smartypants|widont|safe}}</a></h2>
<h4 itemprop="author">{{object.author_name}}</h4>
<div itemprop="review" itemscope itemtype="http://schema.org/Review">
- {% if object.rating %}<span class="book-stars" itemprop="reviewRating">{% for i in ratings_range %}{% if i <= object.get_rating%}&#9733;{%else%}&#9734;{%endif%}{%endfor%}</span>{%endif%}
+ {% if object.rating %}<span class="book-stars" itemprop="reviewRating">{% for i in object.ratings_range %}{% if i <= object.get_rating%}&#9733;{%else%}&#9734;{%endif%}{%endfor%}</span>{%endif%}
<span class="hide" itemprop="author">Scott Gilbertson</span>
<meta itemprop="datePublished" content="{{object.read_date|date:'F Y'}}"><span class="read-in">Read in: {{object.read_date|date:"F Y"}}</span></div>
</article>
diff --git a/design/templates/details/book.html b/design/templates/details/book.html
index 6524885..e1d211a 100644
--- a/design/templates/details/book.html
+++ b/design/templates/details/book.html
@@ -20,7 +20,7 @@
<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.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%}
</dl>