Simplifies reading goal progress covers view

This commit is contained in:
Mouse Reeve 2021-03-31 11:42:57 -07:00
parent c29382ba92
commit e78982b4c7
2 changed files with 4 additions and 6 deletions

View file

@ -55,11 +55,9 @@
</h2>
<div class="columns is-multiline">
{% for book in goal.books %}
<div class="column is-narrow">
<div class="box">
<a href="{{ book.book.local_path }}">
{% include 'discover/small-book.html' with book=book.book rating=goal.ratings %}
</a>
<div class="column is-one-fifth">
<div class="is-clipped">
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book.book %}</a>
</div>
</div>
{% endfor %}

View file

@ -1,7 +1,7 @@
{% load bookwyrm_tags %}
<div class="cover-container is-{{ size }}">
{% if book.cover %}
<img class="book-cover" src="/images/{{ book.cover }}" alt="{{ book.alt_text }}">
<img class="book-cover" src="/images/{{ book.cover }}" alt="{{ book.alt_text }}" title="{{ book.alt_text }}">
{% else %}
<div class="no-cover book-cover">
<img class="book-cover" src="/static/images/no_cover.jpg" alt="No cover">