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