Makes covers clickable in places they aren't

Fixes #598
This commit is contained in:
Mouse Reeve 2021-02-10 16:45:53 -08:00
parent ed56398667
commit 11504e9cef
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@
<div class="card"> <div class="card">
<div class="card-content columns p-0 mb-0"> <div class="card-content columns p-0 mb-0">
<div class="column is-narrow pt-0 pb-0"> <div class="column is-narrow pt-0 pb-0">
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=item.book size="medium" %}</a> <a href="{{ item.book.local_path }}">{% include 'snippets/book_cover.html' with book=item.book size="medium" %}</a>
</div> </div>
<div class="column is-flex-direction-column is-align-items-self-start"> <div class="column is-flex-direction-column is-align-items-self-start">
<span>{% include 'snippets/book_titleby.html' with book=item.book %}</span> <span>{% include 'snippets/book_titleby.html' with book=item.book %}</span>

View File

@ -10,7 +10,7 @@
</header> </header>
<div class="card-image is-flex"> <div class="card-image is-flex">
{% for book in list.listitem_set.all|slice:5 %} {% for book in list.listitem_set.all|slice:5 %}
{% include 'snippets/book_cover.html' with book=book.book size="small" %} <a href="{{ book.book.local_path }}">{% include 'snippets/book_cover.html' with book=book.book size="small" %}</a>
{% endfor %} {% endfor %}
</div> </div>
<div class="card-content is-flex-grow-0"> <div class="card-content is-flex-grow-0">

View File

@ -37,10 +37,10 @@
{% for book in books %} {% for book in books %}
<tr class="book-preview"> <tr class="book-preview">
<td> <td>
{% include 'snippets/book_cover.html' with book=book size="small" %} <a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book size="small" %}</a>
</td> </td>
<td> <td>
<a href="/book/{{ book.id }}">{{ book.title }}</a> <a href="{{ book.local_path }}">{{ book.title }}</a>
</td> </td>
<td> <td>
{{ book.authors.first.name }} {{ book.authors.first.name }}