add basic view for kindle

This commit is contained in:
Chris Arderne
2024-02-28 18:41:02 +00:00
parent c30460d76b
commit aecc68d11e
5 changed files with 220 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
{% 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 %}