added check to iframe

This commit is contained in:
Alice 2018-06-13 10:48:33 +02:00
parent 1b5ea42d2f
commit fae159e20f

View File

@ -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>