mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
Merge pull request #836 from mouse-reeve/goal-covers
Simplifies reading goal progress covers view
This commit is contained in:
commit
ca14d1789d
2 changed files with 4 additions and 6 deletions
|
@ -55,11 +55,9 @@
|
||||||
</h2>
|
</h2>
|
||||||
<div class="columns is-multiline">
|
<div class="columns is-multiline">
|
||||||
{% for book in goal.books %}
|
{% for book in goal.books %}
|
||||||
<div class="column is-narrow">
|
<div class="column is-one-fifth">
|
||||||
<div class="box">
|
<div class="is-clipped">
|
||||||
<a href="{{ book.book.local_path }}">
|
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book.book %}</a>
|
||||||
{% include 'discover/small-book.html' with book=book.book rating=goal.ratings %}
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% load bookwyrm_tags %}
|
{% load bookwyrm_tags %}
|
||||||
<div class="cover-container is-{{ size }}">
|
<div class="cover-container is-{{ size }}">
|
||||||
{% if book.cover %}
|
{% 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 %}
|
{% else %}
|
||||||
<div class="no-cover book-cover">
|
<div class="no-cover book-cover">
|
||||||
<img class="book-cover" src="/static/images/no_cover.jpg" alt="No cover">
|
<img class="book-cover" src="/static/images/no_cover.jpg" alt="No cover">
|
||||||
|
|
Loading…
Reference in a new issue