moviewyrm/bookwyrm/templates/lists/list_items.html

25 lines
1.2 KiB
HTML
Raw Normal View History

2021-01-31 22:03:38 +00:00
{% load bookwyrm_tags %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-01-31 22:03:38 +00:00
<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-02-12 17:58:57 +00:00
<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>
2021-01-31 22:03:38 +00:00
{% endfor %}
</div>
<div class="card-content is-flex-grow-0">
{% if list.description %}{{ list.description | to_markdown | safe | truncatewords_html:20 }}{% endif %}
2021-02-28 02:48:10 +00:00
<p class="subtitle help">{% if list.curation != 'open' %}{% trans "Created and curated by" %}{% else %}{% trans "Created by" %}{% endif %} {% include 'snippets/username.html' with user=list.user %}</p>
2021-01-31 22:03:38 +00:00
</div>
</div>
</div>
{% endfor %}
</div>