mirror of
https://github.com/janeczku/calibre-web
synced 2025-05-21 00:24:12 +00:00
Add series name and index to book cover info
This commit is contained in:
parent
5dd08e438c
commit
54cf3652b0
@ -127,6 +127,12 @@ a { color: #45b29d; }
|
|||||||
color: #444;
|
color: #444;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container-fluid .book .meta .series {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
.container-fluid .book .meta .author {
|
.container-fluid .book .meta .author {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{% if loop.index > g.config_authors_max and g.config_authors_max != 0 %}
|
{% if loop.index > g.config_authors_max and g.config_authors_max != 0 %}
|
||||||
{% if not loop.first %}
|
{% if not loop.first %}
|
||||||
<span class="author-hidden-divider">&</span>
|
<span class="author-hidden-divider">&</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="author-name author-hidden" href="{{url_for('web.books_list', data='author', sort='new', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
<a class="author-name author-hidden" href="{{url_for('web.books_list', data='author', sort='new', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
|
||||||
{% if loop.last %}
|
{% if loop.last %}
|
||||||
<a href="#" class="author-expand" data-authors-max="{{g.config_authors_max}}" data-collapse-caption="({{_('reduce')}})">(...)</a>
|
<a href="#" class="author-expand" data-authors-max="{{g.config_authors_max}}" data-collapse-caption="({{_('reduce')}})">(...)</a>
|
||||||
@ -34,6 +34,14 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
{% if entry.series.__len__() > 0 %}
|
||||||
|
<p class="series">
|
||||||
|
<a href="{{url_for('web.books_list', data='series', sort='new', book_id=entry.series[0].id )}}">
|
||||||
|
{{entry.series[0].name}}
|
||||||
|
</a>
|
||||||
|
({{entry.series_index}})
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% if entry.ratings.__len__() > 0 %}
|
{% if entry.ratings.__len__() > 0 %}
|
||||||
<div class="rating">
|
<div class="rating">
|
||||||
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
||||||
|
@ -33,6 +33,14 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
{% if entry.series.__len__() > 0 %}
|
||||||
|
<p class="series">
|
||||||
|
<a href="{{url_for('web.books_list', data='series', sort='new', book_id=entry.series[0].id )}}">
|
||||||
|
{{entry.series[0].name}}
|
||||||
|
</a>
|
||||||
|
({{entry.series_index}})
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% if entry.ratings.__len__() > 0 %}
|
{% if entry.ratings.__len__() > 0 %}
|
||||||
<div class="rating">
|
<div class="rating">
|
||||||
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
||||||
@ -101,6 +109,14 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{%endfor%}
|
{%endfor%}
|
||||||
</p>
|
</p>
|
||||||
|
{% if entry.series.__len__() > 0 %}
|
||||||
|
<p class="series">
|
||||||
|
<a href="{{url_for('web.books_list', data='series', sort='new', book_id=entry.series[0].id )}}">
|
||||||
|
{{entry.series[0].name}}
|
||||||
|
</a>
|
||||||
|
({{entry.series_index}})
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% if entry.ratings.__len__() > 0 %}
|
{% if entry.ratings.__len__() > 0 %}
|
||||||
<div class="rating">
|
<div class="rating">
|
||||||
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
||||||
|
@ -76,6 +76,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
{% if entry.series.__len__() > 0 %}
|
||||||
|
<p class="series">
|
||||||
|
<a href="{{url_for('web.books_list', data='series', sort='new', book_id=entry.series[0].id )}}">
|
||||||
|
{{entry.series[0].name}}
|
||||||
|
</a>
|
||||||
|
({{entry.series_index}})
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if entry.ratings.__len__() > 0 %}
|
{% if entry.ratings.__len__() > 0 %}
|
||||||
<div class="rating">
|
<div class="rating">
|
||||||
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
||||||
|
@ -43,6 +43,14 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
{% if entry.series.__len__() > 0 %}
|
||||||
|
<p class="series">
|
||||||
|
<a href="{{url_for('web.books_list', data='series', sort='new', book_id=entry.series[0].id )}}">
|
||||||
|
{{entry.series[0].name}}
|
||||||
|
</a>
|
||||||
|
({{entry.series_index|int}})
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% if entry.ratings.__len__() > 0 %}
|
{% if entry.ratings.__len__() > 0 %}
|
||||||
<div class="rating">
|
<div class="rating">
|
||||||
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
{% for number in range((entry.ratings[0].rating/2)|int(2)) %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user