Feed page cleanup

This commit is contained in:
Mouse Reeve
2020-09-29 20:01:57 -07:00
parent c236be4303
commit 24d9839d07
2 changed files with 3 additions and 5 deletions

View File

@ -5,11 +5,10 @@
<div class="media-left">
{% for book in status.mention_books.all|slice:"0:4" %}
<div>
{% include 'snippets/book_cover.html' with book=book %}
<a href="/book/{{ book.id }}">{% include 'snippets/book_cover.html' with book=book %}</a>
{% if status.mention_books.count > 1 %}
<p>{% include 'snippets/book_titleby.html' with book=book %}</p>
{% endif %}
{% include 'snippets/rate_action.html' with book=book user=request.user %}
{% include 'snippets/shelve_button.html' with book=book %}
</div>
{% endfor %}
@ -19,7 +18,7 @@
{% if not hide_book and status.book %}
<div class="media-left">
<div>
{% include 'snippets/book_cover.html' with book=status.book %}
<a href="/book/{{ status.book.id }}">{% include 'snippets/book_cover.html' with book=status.book %}</a>
{% include 'snippets/rate_action.html' with book=status.book user=request.user %}
{% include 'snippets/shelve_button.html' with book=status.book %}
</div>