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

Fix newlines

This commit is contained in:
Syer10
2025-08-15 11:41:38 -04:00
parent 3a899afcce
commit 5cd914f007

View File

@@ -63,26 +63,25 @@
term="{{tag.name}}"
label="{{tag.name}}"/>
{% endfor %}
<summary>
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
{% if entry.Books.ratings.__len__() > 0 %}
RATING:
{% for number in range((entry.Books.ratings[0].rating/2)|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}<br/>
{% endif %}
{% if entry.Books.tags|length > 0 %}
TAGS: {% for tag in entry.Books.tags %}{{tag.name}}{{ ", " if not loop.last else "" }}{% endfor %}
TAGS: {% for tag in entry.Books.tags %}{{tag.name}}{{ ", " if not loop.last else "" }}{% endfor %}<br/>
{% endif %}
{% if entry.Books.series.__len__() > 0 %}
SERIES: {{entry.Books.series[0].name}} [{{entry.Books.series_index|formatfloat(2)}}]
{% endif %}
{% if entry.Books.ratings.__len__() > 0 %}
RATING: {% for number in range((entry.Books.ratings[0].rating/2)|int(2)) %}
{% if loop.last and loop.index < 5 %}
{% for numer in range(5 - loop.index) %}
{% endfor %}
{% endif %}
{% endfor %}
SERIES: {{entry.Books.series[0].name}} [{{entry.Books.series_index|formatfloat(2)}}]<br/>
{% endif %}
{% if cc|length > 0 %}
{% for c in cc %}
{% if entry.Books['custom_column_' ~ c.id]|length > 0 %}
@@ -114,15 +113,15 @@
{% endif %}
{% endif %}
{% endfor %}
<br/>
{% endif %}
{% endfor %}
{% endif %}
{% if entry.Books.comments[0] %}
{{entry.Books.comments[0].text|striptags}}
<p>{{entry.Books.comments[0].text|striptags}}</p>
{% endif %}
</summary>
</div></content>
{% if entry.Books.has_cover %}
<link type="image/jpeg" href="{{url_for('opds.feed_get_cover', book_id=entry.Books.id)}}" rel="http://opds-spec.org/image"/>
<link type="image/jpeg" href="{{url_for('opds.feed_get_cover', book_id=entry.Books.id)}}" rel="http://opds-spec.org/image/thumbnail"/>