2016-11-09 18:24:33 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
2019-01-11 07:36:28 +00:00
|
|
|
<h1 class="{{page}}">{{_(title)}}</h1>
|
2019-07-13 18:45:48 +00:00
|
|
|
|
|
|
|
<div class="filterheader hidden-xs hidden-sm">
|
2019-09-06 16:57:41 +00:00
|
|
|
{% if entries.__len__() %}
|
2020-04-19 17:08:58 +00:00
|
|
|
{% if data == 'author' %}
|
|
|
|
<button id="sort_name" class="btn btn-primary"><b>B,A <-> A B</b></button>
|
2019-07-13 18:45:48 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2021-03-21 18:31:32 +00:00
|
|
|
<button id="asc" data-order="{{ order }}" data-id="{{ data }}" class="btn btn-primary"><span class="glyphicon glyphicon-sort-by-alphabet"></span></button>
|
|
|
|
<button id="desc" data-id="{{ data }}" class="btn btn-primary"><span class="glyphicon glyphicon-sort-by-alphabet-alt"></span></button>
|
2019-07-13 18:45:48 +00:00
|
|
|
{% if charlist|length %}
|
2020-04-19 17:08:58 +00:00
|
|
|
<button id="all" class="btn btn-primary">{{_('All')}}</button>
|
2019-07-13 18:45:48 +00:00
|
|
|
{% endif %}
|
|
|
|
<div class="btn-group character" role="group">
|
|
|
|
{% for char in charlist%}
|
2020-04-19 17:08:58 +00:00
|
|
|
<button class="btn btn-primary char">{{char.char}}</button>
|
2019-07-13 18:45:48 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-04-13 21:15:44 +00:00
|
|
|
|
2020-05-26 13:19:32 +00:00
|
|
|
{% if data == "series" %}
|
2021-08-01 17:54:42 +00:00
|
|
|
<button class="update-view btn btn-primary" data-target="series_view" id="grid-button" data-view="grid">Grid</button>
|
2020-04-19 02:16:49 +00:00
|
|
|
{% endif %}
|
2019-07-13 18:45:48 +00:00
|
|
|
</div>
|
2016-11-09 18:24:33 +00:00
|
|
|
<div class="container">
|
2019-07-13 18:45:48 +00:00
|
|
|
<div id="list" class="col-xs-12 col-sm-6">
|
2016-11-09 18:24:33 +00:00
|
|
|
{% for entry in entries %}
|
2019-07-13 18:45:48 +00:00
|
|
|
{% if loop.index0 == (loop.length/2+loop.length%2)|int and loop.length > 20 %}
|
2017-02-25 12:28:57 +00:00
|
|
|
</div>
|
2019-07-13 18:45:48 +00:00
|
|
|
<div id="second" class="col-xs-12 col-sm-6">
|
2017-02-25 12:28:57 +00:00
|
|
|
{% endif %}
|
2019-07-13 18:45:48 +00: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.name %}{{entry.name}}{% else %}{{entry[0].name}}{% endif %}{% endif %}">
|
2018-08-12 07:29:57 +00:00
|
|
|
<div class="col-xs-2 col-sm-2 col-md-1" align="left"><span class="badge">{{entry.count}}</span></div>
|
2021-05-13 07:41:27 +00: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 18:45:48 +00: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 18:14:07 +00:00
|
|
|
<span class="glyphicon glyphicon-star-empty"></span>
|
2019-07-13 18:45:48 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{% if entry.format %}
|
|
|
|
{{entry.format}}
|
|
|
|
{% else %}
|
|
|
|
{{entry[0].name}}{% endif %}{% endif %}</a></div>
|
2016-11-09 18:24:33 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2019-07-13 18:45:48 +00:00
|
|
|
</div>
|
2016-11-09 18:24:33 +00:00
|
|
|
</div>
|
2019-07-13 18:45:48 +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 %}
|