Update epub reader and pdf reader

Update epub reader and use pdf.js tu view pdf files
This commit is contained in:
wuqi
2016-07-09 16:54:13 +08:00
parent 82574d2118
commit 9a8d795eff
234 changed files with 86778 additions and 142 deletions

View File

@@ -104,7 +104,7 @@
{% if g.user.kindle_mail %}
<a href="{{url_for('send_to_kindle', book_id=entry.id)}}" id="sendbtn" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-send"></span> Send to Kindle</a>
{% endif %}
{% for format in entry.data if format.format|lower == 'epub' %}
{% for format in entry.data if format.format|lower == 'epub' or format.format|lower == 'pdf' %}
<a target="_blank" href="{{url_for('read_book', book_id=entry.id)}}" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-eye-open"></span> Read in browser</a>
{%endfor%}