Stores book identifiers with path part
This commit is contained in:
parent
b1ea495d17
commit
46e38366c7
8 changed files with 48 additions and 46 deletions
14
fedireads/templates/book_snippet.html
Normal file
14
fedireads/templates/book_snippet.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
{% load fr_display %}
|
||||
<img class="book-cover {{ size }}" src="{% if book.cover %}/images/{{ book.cover }}{% else %}/static/images/no_cover.jpg{% endif %}">
|
||||
<p class="title">
|
||||
<a href="/book/{{ book.openlibrary_key }}">{{ book.data.title }}</a>
|
||||
</p>
|
||||
<p>by <a href="/author/{{ book.author.id }}" class="author">{{ book.authors.first.data.name }}</a></p>
|
||||
|
||||
{% if rating %}
|
||||
{{ rating | stars }} {{ rating }}
|
||||
{% endif %}
|
||||
|
||||
{% if description %}
|
||||
<blockquote>{{ book.data.description | description }}</blockquote>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue