Added users so that the site can only be used if logged in. Thumbnails for each comic are also generated with ImageMagick.
13 lines
616 B
HTML
13 lines
616 B
HTML
{% for comic in comics %}
|
|
<div class="col-3" style="padding: 10px">
|
|
<a href="/comics/{{ comic["publisher"]|urlencode }}?series={{ comic["series"]|urlencode }}&seriesYear={{ comic["seriesYear"] }}&issue={{ comic["issue"]|urlencode }}">
|
|
<div class="card">
|
|
<img class="card-img" src="/comics/get_comic/{{ comic['id'] }}/0/thumbnail">
|
|
<div class="card-body">
|
|
{{ comic["series"] }} {% if comic["issue"] > 0 %}{{ "#{0:g}".format(comic["issue"]) }}{% endif %} {% if comic["title"] != None %}{{ comic["title"] }} {% endif %}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|