dlibrary/dlibrary/templates/list.html

22 lines
949 B
HTML
Raw Normal View History

2024-01-22 07:01:41 -05:00
{% extends 'base.html' %}
{% block body %}
{% from 'utils.html' import index, root with context %}
<h1 id="title"><a href="{{ root() }}/{{ index() }}">DLibrary</a>{% if categorization %} &gt; <a href="{{ root() }}/{{ categorization }}/{{ index() }}">{{ categorization.capitalize() }}</a>{% endif %}{% if title %} &gt; {{ title }}{% endif %}</h1>
2024-01-23 00:49:58 -05:00
{% include 'nav.html' %}
<div id="card-listing">
2024-01-22 07:01:41 -05:00
{% for work in works %}
<div class="card">
<a href="{{ root() }}/works/{{ work['id'] }}/{{ index() }}">
<img src="{{ root() }}/{{ work['thumbnail_path'] }}">
<div class="card-creators">
2024-01-22 07:01:41 -05:00
[{% if work['circle'] %}{{ work['circle'] }}{% endif %}{% if work['circle'] and work['authors'] %} ({% endif %}{{ ', '.join(work['authors']) }}{% if work['circle'] and work['authors'] %}){% endif %}]
</div>
<div class="card-title">
{{ work['title'] }}
</div>
</a>
</div>
{% endfor %}
</div>
{% endblock %}