|
|
|
@ -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>
|
|
|
|
|