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-03-08 15:29:12 +00:00
|
|
|
|
2019-03-03 14:37:53 +00:00
|
|
|
<div class="filterheader hidden-xs hidden-sm">
|
|
|
|
<button id="desc" class="btn btn-success"><span class="glyphicon glyphicon-sort-by-alphabet"></span></button>
|
|
|
|
<button id="asc" class="btn btn-success"><span class="glyphicon glyphicon-sort-by-alphabet-alt"></span></button>
|
2019-03-10 18:10:24 +00:00
|
|
|
{% if charlist|length %}
|
2019-03-03 14:37:53 +00:00
|
|
|
<button id="all" class="btn btn-success">{{_('All')}}</button>
|
2019-03-10 18:10:24 +00:00
|
|
|
{% endif %}
|
2019-03-03 14:37:53 +00:00
|
|
|
<div class="btn-group character" role="group">
|
2019-03-03 06:37:15 +00:00
|
|
|
{% for char in charlist%}
|
2019-03-03 14:37:53 +00:00
|
|
|
<button class="btn btn-success char">{{char.char}}</button>
|
2019-03-03 06:37:15 +00:00
|
|
|
{% endfor %}
|
2016-11-09 18:24:33 +00:00
|
|
|
</div>
|
2019-03-03 14:37:53 +00:00
|
|
|
</div>
|
2019-03-08 15:29:12 +00:00
|
|
|
<div class="container">
|
2019-03-03 14:37:53 +00:00
|
|
|
<div id="list" class="col-xs-12 col-sm-6">
|
|
|
|
{% for entry in entries %}
|
2019-03-10 18:10:24 +00:00
|
|
|
<div class="row" data-id="{% if entry[0].sort %}{{entry[0].sort}}{% else %}{% if entry.name %}{{entry.name}}{% else %}{{entry[0].name}}{% endif %}{% endif %}">
|
2019-03-03 14:37:53 +00:00
|
|
|
<div class="col-xs-2 col-sm-2 col-md-1" align="left"><span class="badge">{{entry.count}}</span></div>
|
2019-03-10 18:10:24 +00:00
|
|
|
<div class="col-xs-10 col-sm-10 col-md-11"><a id="list_{{loop.index0}}" href="{{url_for(folder, book_id=entry[0].id )}}">
|
|
|
|
{% 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) %}
|
|
|
|
<span class="glyphicon glyphicon-star"></span>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %} {{entry[0].name}}{% endif %}</a></div>
|
2019-03-03 14:37:53 +00:00
|
|
|
</div>
|
2016-11-09 18:24:33 +00:00
|
|
|
{% endfor %}
|
2019-03-03 06:37:15 +00:00
|
|
|
</div>
|
2017-02-25 12:28:57 +00:00
|
|
|
</div>
|
2016-11-09 18:24:33 +00:00
|
|
|
{% endblock %}
|
2019-03-03 14:37:53 +00:00
|
|
|
{% block js %}
|
|
|
|
<script src="{{ url_for('static', filename='js/filter_list.js') }}"></script>
|
|
|
|
{% endblock %}
|