From ada727a5706fe0ab47d72e04d040d46789cbd85e Mon Sep 17 00:00:00 2001 From: Kyos Date: Sat, 19 Oct 2019 10:52:03 +0200 Subject: [PATCH] Adds Authors, Series and Book Cover to the shelf order view --- cps/static/css/style.css | 1 + cps/templates/shelf_order.html | 25 +++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/cps/static/css/style.css b/cps/static/css/style.css index aaa7503e..3532043f 100644 --- a/cps/static/css/style.css +++ b/cps/static/css/style.css @@ -64,6 +64,7 @@ span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: te .navbar-default .navbar-toggle .icon-bar {background-color: #000;} .navbar-default .navbar-toggle {border-color: #000;} .cover { margin-bottom: 10px;} +.cover-heigh { max-height: 100px;} .btn-file {position: relative; overflow: hidden;} .btn-file input[type=file] {position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; font-size: 100px; text-align: right; filter: alpha(opacity=0); opacity: 0; outline: none; background: white; cursor: inherit; display: block;} diff --git a/cps/templates/shelf_order.html b/cps/templates/shelf_order.html index e3340993..0fa8dc15 100644 --- a/cps/templates/shelf_order.html +++ b/cps/templates/shelf_order.html @@ -1,11 +1,32 @@ {% extends "layout.html" %} {% block body %} -
+

{{title}}

{{_('Drag \'n drop to rearrange order')}}
{% for entry in entries %} -
{{entry.title}}
+
+
+ +
+ {{entry.title}} + {% if entry.series|length > 0 %} +
+ {{entry.series_index}} - {{entry.series[0].name}} + {% endif %} +
+ {% for author in entry.authors %} + {{author.name.replace('|',',')}} + {% if not loop.last %} + & + {% endif %} + {% endfor %} +
+
+
+
{% endfor %}