Bugfix PDF Reader with reverse proxy (#86)

Bugfix Txt Reader
Bugfix for loading covers with reverse proxy
This commit is contained in:
OzzieIsaacs
2016-12-28 11:43:36 +01:00
parent c33a329f08
commit a8f7fde333
6 changed files with 13 additions and 11 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
<div class="col-sm-3 col-lg-3 col-xs-12">
<div class="cover">
{% if entry.has_cover is defined %}
<img src="{{ url_for('get_cover', cover_path=entry.path) }}" />
<img src="{{ url_for('get_cover', cover_path=entry.path.replace('\\','/')) }}" />
{% endif %}
</div>
</div>
@@ -130,7 +130,7 @@
</button>
<ul class="dropdown-menu" aria-labelledby="btnGroupDrop2">
{% for format in entry.data %}
{%if format.format|lower == 'epub' or format.format|lower == 'txt' or format.format|lower == 'pdf' %}
{%if format.format|lower == 'epub' or format.format|lower == 'txt' or format.format|lower == 'pdf' or format.format|lower == 'cbr' or format.format|lower == 'cbt' or format.format|lower == 'cbz' %}
<li><a target="_blank" href="{{ url_for('read_book', book_id=entry.id, format=format.format|lower) }}">{{format.format}}</a></li>
{% endif %}
{%endfor%}