forked from mirrors/bookwyrm
- Work on feeds. - Add `.is-cover` to modify the behaviours of columns. - Only apply logic for dimensions on the cover container; too many contextual side effects otherwise. - Add classes to dimension and align, including auto margins for flex. - Rename classes in templates accordingly.
24 lines
629 B
HTML
24 lines
629 B
HTML
|
|
{% load bookwyrm_tags %}
|
|
{% load i18n %}
|
|
|
|
{% if book %}
|
|
{% with book=book %}
|
|
<a
|
|
href="{{ book.local_path }}"
|
|
>{% include 'snippets/book_cover.html' with cover_class='is-h-s' %}</a>
|
|
|
|
{% include 'snippets/stars.html' with rating=book|rating:request.user %}
|
|
|
|
<h3 class="title is-6">
|
|
<a href="/book/{{ book.id }}">{{ book.title }}</a>
|
|
</h3>
|
|
|
|
{% if book.authors %}
|
|
<p class="subtitle is-6">
|
|
{% trans "by" %}
|
|
{% include 'snippets/authors.html' %}
|
|
</p>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endif %}
|