added check to iframe

master
Alice 7 years ago
parent 1b5ea42d2f
commit fae159e20f

@ -28,7 +28,11 @@
<li> <a href="{{url_for('show_book_by_id', id=book.id)}}">{{book.title}}</a> </li>
<img class="no_cover" id="{{ book.title }}" src="../cover/{{ book.cover }}" width="150" onerror="if (this.src != '../cover/{{ book.cover }}') this.src = '../static/img/default_cover.gif';">
<div class='widget'>
{%if light%}
{%else%}
<iframe src="../uploads/{{ book.file }}" width="50%" ></iframe>
{%endif%}
</div>

Loading…
Cancel
Save