|
|
@ -8,11 +8,13 @@
|
|
|
|
{% for entry in random %}
|
|
|
|
{% for entry in random %}
|
|
|
|
<div class="col-sm-3 col-lg-2 col-xs-6 book">
|
|
|
|
<div class="col-sm-3 col-lg-2 col-xs-6 book">
|
|
|
|
<div class="cover">
|
|
|
|
<div class="cover">
|
|
|
|
{% if entry.has_cover is defined %}
|
|
|
|
|
|
|
|
<a href="{{ url_for('show_book', id=entry.id) }}">
|
|
|
|
<a href="{{ url_for('show_book', id=entry.id) }}">
|
|
|
|
|
|
|
|
{% 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('\\','/')) }}" />
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="meta">
|
|
|
|
<div class="meta">
|
|
|
|
<p class="title">{{entry.title|shortentitle}}</p>
|
|
|
|
<p class="title">{{entry.title|shortentitle}}</p>
|
|
|
@ -41,11 +43,13 @@
|
|
|
|
{% for entry in entries %}
|
|
|
|
{% for entry in entries %}
|
|
|
|
<div class="col-sm-3 col-lg-2 col-xs-6 book">
|
|
|
|
<div class="col-sm-3 col-lg-2 col-xs-6 book">
|
|
|
|
<div class="cover">
|
|
|
|
<div class="cover">
|
|
|
|
{% if entry.has_cover is defined %}
|
|
|
|
|
|
|
|
<a href="{{ url_for('show_book', id=entry.id) }}">
|
|
|
|
<a href="{{ url_for('show_book', id=entry.id) }}">
|
|
|
|
|
|
|
|
{% 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('\\','/')) }}" />
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='generic_cover.jpg') }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="meta">
|
|
|
|
<div class="meta">
|
|
|
|
<p class="title">{{entry.title|shortentitle}}</p>
|
|
|
|
<p class="title">{{entry.title|shortentitle}}</p>
|
|
|
|