2016-11-09 19:24:33 +01:00
{% extends "layout.html" %}
{% block body %}
2019-01-11 08:36:28 +01:00
< h1 class = "{{page}}" > {{_(title)}}< / h1 >
2019-07-13 20:45:48 +02:00
2021-11-02 17:27:50 +01:00
< div class = "filterheader hidden-xs" >
2021-11-02 18:32:29 +01:00
< input type = "hidden" name = "csrf_token" value = "{{ csrf_token() }}" >
2021-11-02 17:27:50 +01:00
{% if entries.__len__() and data == 'author' %}
2021-11-03 18:07:16 +01:00
< div id = "sort_name" class = "btn btn-primary" > < b > B,A < - > A B< / b > < / div >
2019-07-13 20:45:48 +02:00
{% endif %}
2021-11-03 18:07:16 +01:00
< div id = "asc" data-order = "{{ order }}" data-id = "{{ data }}" class = "btn btn-primary {% if order == 1 %} active{% endif%}" > < span class = "glyphicon glyphicon-sort-by-alphabet" > < / span > < / div >
< div id = "desc" data-id = "{{ data }}" class = "btn btn-primary{% if order == 0 %} active{% endif%}" > < span class = "glyphicon glyphicon-sort-by-alphabet-alt" > < / span > < / div >
2019-07-13 20:45:48 +02:00
{% if charlist|length %}
2021-11-03 18:07:16 +01:00
< div id = "all" class = "active btn btn-primary {% if charlist|length > 9 %}hidden-sm{% endif %}" > {{_('All')}}< / div >
2019-07-13 20:45:48 +02:00
{% endif %}
2021-11-02 17:27:50 +01:00
< div class = "btn-group character {% if charlist|length > 9 %}hidden-sm{% endif %}" role = "group" >
2019-07-13 20:45:48 +02:00
{% for char in charlist%}
2022-04-16 17:01:41 +02:00
< div class = "btn btn-primary char" > {{char[0]}}< / div >
2019-07-13 20:45:48 +02:00
{% endfor %}
< / div >
2020-04-13 23:15:44 +02:00
2020-05-26 15:19:32 +02:00
{% if data == "series" %}
2021-08-01 19:54:42 +02:00
< button class = "update-view btn btn-primary" data-target = "series_view" id = "grid-button" data-view = "grid" > Grid< / button >
2020-04-19 04:16:49 +02:00
{% endif %}
2019-07-13 20:45:48 +02:00
< / div >
2016-11-09 19:24:33 +01:00
< div class = "container" >
2019-07-13 20:45:48 +02:00
< div id = "list" class = "col-xs-12 col-sm-6" >
2016-11-09 19:24:33 +01:00
{% for entry in entries %}
2019-07-13 20:45:48 +02:00
{% if loop.index0 == (loop.length/2+loop.length%2)|int and loop.length > 20 %}
2017-02-25 13:28:57 +01:00
< / div >
2019-07-13 20:45:48 +02:00
< div id = "second" class = "col-xs-12 col-sm-6" >
2017-02-25 13:28:57 +01:00
{% endif %}
2022-04-19 15:05:41 +02:00
< div class = "row" { % if entry [ 0 ] . sort % } data-name = "{{entry[0].name}}" { % endif % } data-id = "{% if entry[0].sort %}{{entry[0].sort}}{% else %}{% if entry[0].format %}{{entry[0].format}}{% else %}{% if entry[0].rating %}{{entry[0].rating}}{% else %}{{entry[0].name}}{% endif %}{% endif %}{% endif %}" >
2022-04-16 17:01:41 +02:00
< div class = "col-xs-2 col-sm-2 col-md-1" align = "left" > < span class = "badge" > {{entry[1]}}< / span > < / div >
2021-05-13 09:41:27 +02:00
< div class = "col-xs-10 col-sm-10 col-md-11" > < a id = "list_{{loop.index0}}" href = "{% if entry.format %}{{url_for('web.books_list', data=data, sort_param='stored', book_id=entry.format )}}{% else %}{{url_for('web.books_list', data=data, sort_param='stored', book_id=entry[0].id )}}{% endif %}" >
2019-07-13 20:45:48 +02:00
{% if entry.name %}
< div class = "rating" >
{% for number in range(entry.name) %}
< span class = "glyphicon glyphicon-star good" > < / span >
{% if loop.last and loop.index < 5 % }
{% for numer in range(5 - loop.index) %}
2020-06-03 20:14:07 +02:00
< span class = "glyphicon glyphicon-star-empty" > < / span >
2019-07-13 20:45:48 +02:00
{% endfor %}
{% endif %}
{% endfor %}
< / div >
{% else %}
{% if entry.format %}
{{entry.format}}
{% else %}
{{entry[0].name}}{% endif %}{% endif %}< / a > < / div >
2016-11-09 19:24:33 +01:00
< / div >
{% endfor %}
2019-07-13 20:45:48 +02:00
< / div >
2016-11-09 19:24:33 +01:00
< / div >
2019-07-13 20:45:48 +02:00
{% endblock %}
{% block js %}
< script src = "{{ url_for('static', filename='js/filter_list.js') }}" > < / script >
2016-11-09 19:24:33 +01:00
{% endblock %}