2021-09-25 01:04:38 -07:00
{% import 'image.html' as image %}
2020-04-13 14:15:44 -07:00
{% extends "layout.html" %}
{% block body %}
2020-04-18 19:10:21 -07:00
< h1 class = "{{page}}" > {{_(title)}}< / h1 >
2020-04-13 14:15:44 -07:00
2021-11-02 09:27:50 -07:00
< div class = "filterheader hidden-xs" >
{% if entries.__len__() and data == 'author' %}
2021-11-03 10:07:16 -07:00
< div id = "sort_name" class = "btn btn-primary" > < b > B,A < - > A B< / b > < / div >
2020-04-18 19:10:21 -07:00
{% endif %}
2021-11-02 07:57:28 -07:00
< input type = "hidden" name = "csrf_token" value = "{{ csrf_token() }}" >
2021-11-03 10:07:16 -07:00
< div id = "asc" data-id = "series" data-order = "{{ order }}" class = "btn btn-primary{% if order == 1 %} active{% endif%}" > < span class = "glyphicon glyphicon-sort-by-alphabet" > < / span > < / div >
< div id = "desc" data-id = "series" class = "btn btn-primary{% if order == 0 %} active{% endif%}" > < span class = "glyphicon glyphicon-sort-by-alphabet-alt" > < / span > < / div >
2020-04-13 14:15:44 -07:00
{% if charlist|length %}
2021-11-03 10:07:16 -07:00
< div id = "all" class = "active btn btn-primary {% if charlist|length > 9 %}hidden-sm{% endif %}" > {{_('All')}}< / div >
2020-04-13 14:15:44 -07:00
{% endif %}
2021-11-02 09:27:50 -07:00
< div class = "btn-group character {% if charlist|length > 9 %}hidden-sm{% endif %}" role = "group" >
2020-04-13 14:15:44 -07:00
{% for char in charlist%}
2021-11-03 10:07:16 -07:00
< div class = "btn btn-primary char" > {{char.char}}< / div >
2020-04-13 14:15:44 -07:00
{% endfor %}
< / div >
2022-05-01 04:24:11 -07:00
< div class = "update-view btn btn-primary" data-target = "series_view" id = "list-button" data-view = "list" > {{_('List')}}< / div >
2020-04-13 14:15:44 -07:00
< / div >
{% if entries[0] %}
2020-10-16 10:41:48 -07:00
< div id = "list" class = "row display-flex" >
2020-04-13 14:15:44 -07:00
{% for entry in entries %}
< div class = "col-sm-3 col-lg-2 col-xs-6 book sortable" { % if entry [ 0 ] . sort % } data-name = "{{entry[0].series[0].name}}" { % endif % } data-id = "{% if entry[0].series[0].name %}{{entry[0].series[0].name}}{% endif %}" >
< div class = "cover" >
2021-05-13 00:41:27 -07:00
< a href = "{{url_for('web.books_list', data=data, sort_param='stored', book_id=entry[0].series[0].id )}}" >
2021-09-25 05:01:17 -07:00
< span class = "img" title = "{{entry[0].series[0].name}}" >
2022-01-26 21:56:10 -08:00
{{ image.series(entry[0].series[0], alt=entry[0].series[0].name|shortentitle) }}
2020-10-12 00:31:58 -07:00
< span class = "badge" > {{entry.count}}< / span >
< / span >
2020-04-13 14:15:44 -07:00
< / a >
< / div >
< div class = "meta" >
2021-05-13 00:41:27 -07:00
< a href = "{{url_for('web.books_list', data=data, sort_param='stored', book_id=entry[0].series[0].id )}}" >
2021-07-12 05:17:28 -07:00
< p title = "{{entry[0].series[0].name|shortentitle}}" class = "title" > {{entry[0].series[0].name|shortentitle}}< / p >
2020-04-13 14:15:44 -07:00
< / a >
< / div >
< / div >
{% endfor %}
< / div >
{% endif %}
{% endblock %}
{% block js %}
< script src = "{{ url_for('static', filename='js/filter_grid.js') }}" > < / script >
{% endblock %}