added check to iframe
This commit is contained in:
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…
Reference in New Issue
Block a user