1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-18 07:44:54 +00:00
calibre-web/cps/templates/basic_index.html
2024-02-28 18:41:02 +00:00

25 lines
649 B
HTML

{% extends "basic_layout.html" %}
{% block body %}
<div>
{% if entries|length < 1 %}
<p>{{_('No Results Found')}}</p>
<p>{{_('Search Term:')}} {{adv_searchterm}}</p>
{% endif %}
<div>
{% for entry in entries %}
{% if entry.Books.authors %}
{% set author = entry.Books.authors[0].name.replace('|',',')|shortentitle(30) %}
{% else %}
{% set author = '' %}
{% endif %}
<a href="{{ url_for('basic.show_book', book_id=entry.Books.id) }}">
<p title="{{entry.Books.title}}">{{ author }} - {{entry.Books.title|shortentitle}}</p>
</a>
{% endfor %}
</div>
</div>
{% endblock %}