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