forked from mirrors/bookwyrm
eea8b4e750
- Have an explicit contextual class on `cover-container`. - Use more flexible, consistent and searchable variable name for passing classes to covers. - Consistently use `'…'` with django variables. - Give the option to not hide covers to screen readers. - consitently give a title to the cover container if `alt_text` exists. - [lists] Remove `.content` which is applying too extensive default styles.
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
|
|
{% load bookwyrm_tags %}
|
|
{% load i18n %}
|
|
|
|
{% if book %}
|
|
{% with book=book %}
|
|
<div class="columns">
|
|
<div class="column">
|
|
<a
|
|
href="{{ book.local_path }}"
|
|
>{% include 'snippets/book_cover.html' with cover_class='is-large' %}</a>
|
|
|
|
{% include 'snippets/stars.html' with rating=book|rating:request.user %}
|
|
</div>
|
|
|
|
<div class="column">
|
|
<h3 class="title is-5">
|
|
<a href="/book/{{ book.id }}">{{ book.title }}</a>
|
|
</h3>
|
|
|
|
{% if book.authors %}
|
|
<p class="subtitle is-5">
|
|
{% trans "by" %}
|
|
{% include 'snippets/authors.html' %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if book|book_description %}
|
|
<blockquote class="content">
|
|
{{ book|book_description|to_markdown|safe|truncatewords_html:50 }}
|
|
</blockquote>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endwith %}
|
|
{% endif %}
|