mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-04 17:23:18 +00:00
Fix newlines
This commit is contained in:
@@ -63,26 +63,25 @@
|
|||||||
term="{{tag.name}}"
|
term="{{tag.name}}"
|
||||||
label="{{tag.name}}"/>
|
label="{{tag.name}}"/>
|
||||||
{% endfor %}
|
{% 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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if entry.Books.series.__len__() > 0 %}
|
{% if entry.Books.series.__len__() > 0 %}
|
||||||
SERIES: {{entry.Books.series[0].name}} [{{entry.Books.series_index|formatfloat(2)}}]
|
SERIES: {{entry.Books.series[0].name}} [{{entry.Books.series_index|formatfloat(2)}}]<br/>
|
||||||
|
|
||||||
{% 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 %}
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if cc|length > 0 %}
|
{% if cc|length > 0 %}
|
||||||
{% for c in cc %}
|
{% for c in cc %}
|
||||||
{% if entry.Books['custom_column_' ~ c.id]|length > 0 %}
|
{% if entry.Books['custom_column_' ~ c.id]|length > 0 %}
|
||||||
@@ -114,15 +113,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if entry.Books.comments[0] %}
|
{% if entry.Books.comments[0] %}
|
||||||
{{entry.Books.comments[0].text|striptags}}
|
<p>{{entry.Books.comments[0].text|striptags}}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</summary>
|
</div></content>
|
||||||
{% if entry.Books.has_cover %}
|
{% 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"/>
|
||||||
<link type="image/jpeg" href="{{url_for('opds.feed_get_cover', book_id=entry.Books.id)}}" rel="http://opds-spec.org/image/thumbnail"/>
|
<link type="image/jpeg" href="{{url_for('opds.feed_get_cover', book_id=entry.Books.id)}}" rel="http://opds-spec.org/image/thumbnail"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user