1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-11-02 00:03:03 +00:00

Adds Authors, Series and Book Cover to the shelf order view

This commit is contained in:
Kyos
2019-10-19 10:52:03 +02:00
parent 0c40e40dc3
commit ada727a570
2 changed files with 24 additions and 2 deletions

View File

@@ -1,11 +1,32 @@
{% extends "layout.html" %}
{% block body %}
<div class="col-sm-6 col-lg-6 col-xs-6">
<div class="col-sm-8 col-lg-8 col-xs-12">
<h2>{{title}}</h2>
<div>{{_('Drag \'n drop to rearrange order')}}</div>
<div id="sortTrue" class="list-group">
{% for entry in entries %}
<div id="{{entry.id}}" class="list-group-item">{{entry.title}}</div>
<div id="{{entry.id}}" class="list-group-item">
<div class="row">
<div class="col-lg-4 col-sm-4 hidden-xs">
<img class="cover-heigh" src="{{ url_for('web.get_cover', book_id=entry.id) }}">
</div>
<div class="col-lg-8 col-sm-8 col-xs-12">
{{entry.title}}
{% if entry.series|length > 0 %}
<br>
{{entry.series_index}} - {{entry.series[0].name}}
{% endif %}
<br>
{% for author in entry.authors %}
{{author.name.replace('|',',')}}
{% if not loop.last %}
&amp;
{% endif %}
{% endfor %}
</div>
</div>
<div style="clear:both;"></div>
</div>
{% endfor %}
</div>
<button onclick="sendData('{{ url_for('shelf.order_shelf', shelf_id=shelf.id) }}')" class="btn btn-default" id="ChangeOrder">{{_('Change order')}}</button>