22 lines
949 B
HTML
22 lines
949 B
HTML
{% extends 'base.html' %}
|
|
{% block body %}
|
|
{% from 'utils.html' import index, root with context %}
|
|
<h1 id="title"><a href="{{ root() }}/{{ index() }}">DLibrary</a>{% if categorization %} > <a href="{{ root() }}/{{ categorization }}/{{ index() }}">{{ categorization.capitalize() }}</a>{% endif %}{% if title %} > {{ title }}{% endif %}</h1>
|
|
{% include 'nav.html' %}
|
|
<div id="card-listing">
|
|
{% for work in works %}
|
|
<div class="card">
|
|
<a href="{{ root() }}/works/{{ work['id'] }}/{{ index() }}">
|
|
<img src="{{ root() }}/{{ work['thumbnail_path'] }}">
|
|
<div class="card-creators">
|
|
[{% 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 %}
|