1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-25 02:57:22 +00:00
This commit is contained in:
OzzieIsaacs 2018-02-04 08:05:08 +01:00
parent 7371803184
commit 21c2ee4d63

View File

@ -15,6 +15,7 @@
<div class="btn-toolbar" role="toolbar">
<div class="btn-group" role="group" aria-label="Download, send to Kindle, reading">
{% if g.user.role_download() %}
{% if entry.data|length %}
<div class="btn-group" role="group">
{% if entry.data|length < 3 %}
<button type="button" class="btn btn-primary">
@ -38,10 +39,11 @@
{% endif %}
</div>
{% endif %}
{% endif %}
{% if g.user.kindle_mail and g.user.is_authenticated %}
<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 %}
{% if entry.data|length %}
<div class="btn-group" role="group">
<button id="read-in-browser" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-eye-open"></span> {{_('Read in browser')}}
@ -55,6 +57,7 @@
{%endfor%}
</ul>
</div>
{% endif %}
</div>
</div>
<h2>{{entry.title}}</h2>