Creates snippets for discover preview boxes
This commit is contained in:
8
bookwyrm/templates/snippets/discover/small-book.html
Normal file
8
bookwyrm/templates/snippets/discover/small-book.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% include 'snippets/book_cover.html' with book=book %}
|
||||
{% include 'snippets/stars.html' with rating=book.review__rating__avg %}
|
||||
|
||||
<h3 class="title is-6"><a href="/book/{{ book.id }}">{{ book.title }}</a></h3>
|
||||
{% if book.authors %}
|
||||
<p class="subtitle is-6">by {% include 'snippets/authors.html' with book=book %}</p>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user