|
|
|
@ -10,9 +10,9 @@
|
|
|
|
|
<div class="cover">
|
|
|
|
|
<a href="{{ url_for('show_book', book_id=entry.id) }}" data-toggle="modal" data-target="#bookDetailsModal" data-remote="false">
|
|
|
|
|
{% if entry.has_cover %}
|
|
|
|
|
<img src="{{ url_for('get_cover', cover_path=entry.path.replace('\\','/')) }}" />
|
|
|
|
|
<img src="{{ url_for('get_cover', cover_path=entry.path.replace('\\','/')) }}" alt="{{ entry.title }}" />
|
|
|
|
|
{% else %}
|
|
|
|
|
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" />
|
|
|
|
|
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" alt="{{ entry.title }}" />
|
|
|
|
|
{% endif %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
@ -46,9 +46,9 @@
|
|
|
|
|
<div class="cover">
|
|
|
|
|
<a href="{{ url_for('show_book', book_id=entry.id) }}" data-toggle="modal" data-target="#bookDetailsModal" data-remote="false">
|
|
|
|
|
{% if entry.has_cover %}
|
|
|
|
|
<img src="{{ url_for('get_cover', cover_path=entry.path.replace('\\','/')) }}" />
|
|
|
|
|
<img src="{{ url_for('get_cover', cover_path=entry.path.replace('\\','/')) }}" alt="{{ entry.title }}"/>
|
|
|
|
|
{% else %}
|
|
|
|
|
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" />
|
|
|
|
|
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" alt="{{ entry.title }}" />
|
|
|
|
|
{% endif %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|