Fix #848
This commit is contained in:
parent
436c2671d1
commit
4552208c02
|
@ -40,7 +40,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if g.user.kindle_mail and g.user.is_authenticated and kindle_list %}
|
{% if g.user.kindle_mail and kindle_list %}
|
||||||
{% if kindle_list.__len__() == 1 %}
|
{% if kindle_list.__len__() == 1 %}
|
||||||
<a href="{{url_for('send_to_kindle', book_id=entry.id, book_format=kindle_list[0]['format'], convert=kindle_list[0]['convert'])}}" id="sendbtn" data-text="{{_('Send to Kindle')}}" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-send"></span> {{kindle_list[0]['text']}}</a>
|
<a href="{{url_for('send_to_kindle', book_id=entry.id, book_format=kindle_list[0]['format'], convert=kindle_list[0]['convert'])}}" id="sendbtn" data-text="{{_('Send to Kindle')}}" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-send"></span> {{kindle_list[0]['text']}}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -211,6 +211,7 @@ class Anonymous(AnonymousUserMixin, UserBase):
|
||||||
self.locale = data.locale
|
self.locale = data.locale
|
||||||
self.mature_content = data.mature_content
|
self.mature_content = data.mature_content
|
||||||
self.anon_browse = settings.config_anonbrowse
|
self.anon_browse = settings.config_anonbrowse
|
||||||
|
self.kindle_mail = data.kindle_mail
|
||||||
|
|
||||||
def role_admin(self):
|
def role_admin(self):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user