cover folders beautified

This commit is contained in:
Ozzieisaacs
2019-02-03 20:29:16 +01:00
parent 6661be91ff
commit 6fc4b318e8
9 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<div class="col-sm-3 col-lg-3 col-xs-12">
<div class="cover">
{% if book.has_cover %}
<img src="{{ url_for('get_cover', cover_path=book.path.replace('\\','/')) }}" alt="{{ book.title }}"/>
<img src="{{ url_for('get_cover', book_id=book.id) }}" alt="{{ book.title }}"/>
{% else %}
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" alt="{{ book.title }}"/>
{% endif %}