|
|
@ -22,7 +22,7 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
{% for format in entry.data %}
|
|
|
|
{% for format in entry.data %}
|
|
|
|
<a href="{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}" id="btnGroupDrop1{{format.format|lower}}" class="btn btn-primary" role="button">
|
|
|
|
<a href="{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}" id="btnGroupDrop1{{format.format|lower}}" class="btn btn-primary" role="button">
|
|
|
|
<span class="glyphicon glyphicon-download"></span>{{format.format}}
|
|
|
|
<span class="glyphicon glyphicon-download"></span>{{format.format}} ({{ format.uncompressed_size|filesizeformat }})
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
|
|
|
|
{% for format in entry.data %}
|
|
|
|
{% for format in entry.data %}
|
|
|
|
<li><a href="{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}">{{format.format}}</a></li>
|
|
|
|
<li><a href="{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}">{{format.format}} ({{ format.uncompressed_size|filesizeformat }})</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|