forked from mirrors/bookwyrm
9b949d9845
Rather than separating out "your lists"
31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
{% 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>
|
|
<div class="card-image is-flex is-clipped">
|
|
{% for book in list.listitem_set.all|slice:5 %}
|
|
<a href="{{ book.book.local_path }}">{% include 'snippets/book_cover.html' with book=book.book size="small" %}</a>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="card-content is-flex-grow-0">
|
|
<div {% if list.description %}title="{{ list.description }}"{% endif %}>
|
|
{% if list.description %}
|
|
{{ list.description|to_markdown|safe|truncatechars_html:30 }}
|
|
{% else %}
|
|
|
|
{% endif %}
|
|
</div>
|
|
<p class="subtitle help">
|
|
{% include 'lists/created_text.html' with list=list %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|