2021-01-31 22:03:38 +00:00
|
|
|
{% load bookwyrm_tags %}
|
|
|
|
<div class="columns is-multiline">
|
|
|
|
{% for list in lists %}
|
|
|
|
<div class="column is-one-quarter">
|
|
|
|
<div class="card">
|
|
|
|
<header class="card-header">
|
|
|
|
<h4 class="card-header-title">
|
|
|
|
<a href="{{ list.local_path }}">{{ list.name }}</a> <span class="subtitle">{% include 'snippets/privacy-icons.html' with item=list %}</span>
|
|
|
|
</h4>
|
|
|
|
</header>
|
2021-04-24 19:16:30 +00:00
|
|
|
|
|
|
|
{% with list_books=list.listitem_set.all|slice:5 %}
|
|
|
|
{% if list_books %}
|
2021-04-25 13:37:46 +00:00
|
|
|
<div class="card-image columns is-mobile is-gapless is-clipped">
|
2021-04-24 19:16:30 +00:00
|
|
|
{% for book in list_books %}
|
|
|
|
<a class="column is-narrow" href="{{ book.book.local_path }}">
|
2021-04-25 13:37:46 +00:00
|
|
|
{% include 'snippets/book_cover.html' with book=book.book cover_class='has-height is-h-small' aria='show' %}
|
2021-04-24 19:16:30 +00:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|
2021-01-31 22:03:38 +00:00
|
|
|
<div class="card-content is-flex-grow-0">
|
2021-03-30 17:19:51 +00:00
|
|
|
<div {% if list.description %}title="{{ list.description }}"{% endif %}>
|
|
|
|
{% if list.description %}
|
|
|
|
{{ list.description|to_markdown|safe|truncatechars_html:30 }}
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-03-07 18:24:46 +00:00
|
|
|
<p class="subtitle help">
|
|
|
|
{% include 'lists/created_text.html' with list=list %}
|
|
|
|
</p>
|
2021-01-31 22:03:38 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|