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