2016-11-09 18:24:33 +00:00
{% extends "layout.html" %}
{% block body %}
< h1 > {{title}}< / h1 >
2021-11-21 09:21:45 +00:00
< div class = "filterheader hidden-xs" >
< input type = "hidden" name = "csrf_token" value = "{{ csrf_token() }}" >
< 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 >
{% if charlist|length %}
< div id = "all" class = "active btn btn-primary {% if charlist|length > 9 %}hidden-sm{% endif %}" > {{_('All')}}< / div >
{% endif %}
< div class = "btn-group character {% if charlist|length > 9 %}hidden-sm{% endif %}" role = "group" >
{% for char in charlist%}
< div class = "btn btn-primary char" > {{char}}< / div >
{% endfor %}
< / div >
< / div >
2016-11-09 18:24:33 +00:00
< div class = "container" >
2021-11-21 09:21:45 +00:00
< div div id = "list" class = "col-xs-12 col-sm-6" >
2016-11-09 18:24:33 +00:00
{% for lang in languages %}
2017-02-25 12:28:57 +00:00
{% if loop.index0 == (loop.length/2)|int and loop.length > 20 %}
2021-11-21 09:21:45 +00:00
< / div >
< div id = "second" class = "col-xs-12 col-sm-6" >
2017-02-25 12:28:57 +00:00
{% endif %}
2021-11-21 09:21:45 +00:00
< div class = "row" data-id = "{% if lang.name %}{{lang.name}}{% else %}{{lang[0].name}}{% endif %}" >
2018-08-31 08:47:58 +00:00
< div class = "col-xs-2 col-sm-2 col-md-1" align = "left" > < span class = "badge" > {{lang_counter[loop.index0].bookcount}}< / span > < / div >
2020-07-11 10:09:34 +00:00
< div class = "col-xs-10 col-sm-10 col-md-11" > < a id = "list_{{loop.index0}}" href = "{{url_for('web.books_list', book_id=lang.lang_code, data=data, sort_param='new')}}" > {{lang.name}}< / a > < / div >
2016-11-09 18:24:33 +00:00
< / div >
{% endfor %}
2021-11-21 09:21:45 +00:00
< / div >
2017-02-25 12:28:57 +00:00
< / div >
2021-11-21 09:21:45 +00:00
{% endblock %}
{% block js %}
< script src = "{{ url_for('static', filename='js/filter_list.js') }}" > < / script >
2016-11-09 18:24:33 +00:00
{% endblock %}
2019-07-22 19:38:52 +00:00