moviewyrm/bookwyrm/templates/discover/small-book.html

43 lines
1.5 KiB
HTML

{% load landing_page_tags %}
{% load utilities %}
{% load i18n %}
{% load status_display %}
{% if status.book or status.mention_books.exists %}
{% load_book status as book %}
<a href="{{ book.local_path }}">
{% include 'snippets/book_cover.html' with cover_class='is-w-l-mobile is-w-auto align to-b to-l' size='xxlarge' %}
</a>
<div class="block mt-2">
{% include 'snippets/shelve_button/shelve_button.html' %}
</div>
<div class="media block mb-2">
<figure class="media-left" aria-hidden="true">
<a class="image is-48x48" href="{{ status.user.local_path }}" tabindex="-1">
{% include 'snippets/avatar.html' with user=status.user ariaHide="true" medium="true" %}
</a>
</figure>
<div class="media-content">
<h3 class="title is-6">
{% include "discover/card-header.html" %}
</h3>
{% if status.rating %}
<p class="subtitle is-6">
{% include 'snippets/stars.html' with rating=status.rating %}
</p>
{% endif %}
</div>
</div>
<div class="block">
<a href="{{ status.remote_id }}">
<span>{% trans "View status" %}</span>
<span class="icon icon-arrow-right" aria-hidden="true"></span>
</a>
</div>
<div class="block">
{% include 'snippets/follow_button.html' with user=status.user show_username=True minimal=True %}
</div>
{% endif %}