Commit 45eeb658 authored by 林檎's avatar 林檎 Committed by 林檎

Change Download Style.

parent b8fa748c
This diff is collapsed.
...@@ -130,15 +130,18 @@ ...@@ -130,15 +130,18 @@
<div class="btn-group" role="group" aria-label="Download, send to Kindle, reading"> <div class="btn-group" role="group" aria-label="Download, send to Kindle, reading">
{% if g.user.role_download() %} {% if g.user.role_download() %}
<div class="btn-group" role="group"> <div class="btn-group" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button id="btnGroupDrop1" type="button" class="btn btn-primary">
<span class="glyphicon glyphicon-download"></span> {{_('Download')}} {{_('Download')}} :
<span class="caret"></span>
</button> </button>
<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> <button id="btnGroupDrop1{{format.format|lower}}" type="button" class="btn btn-primary">
<a href="{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}">
<span class="glyphicon glyphicon-download"></span>
{{format.format}}
<span class="ebook-icon ebook-{{format.format|lower}}"></span>
</a>
</button>
{%endfor%} {%endfor%}
</ul>
</div> </div>
{% endif %} {% endif %}
...@@ -247,5 +250,3 @@ ...@@ -247,5 +250,3 @@
}); });
</script> </script>
{% endblock %} {% endblock %}
...@@ -88,7 +88,18 @@ ...@@ -88,7 +88,18 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table id="libs" class="table">
<thead>
<tr>
<th>{{_('File License')}}</th>
<th>{{_('License Type')}}</th>
</tr>
</thead>
<tbody>
<tr>
<th><a href="//www.iconfinder.com/iconsets/document-file">File Document Icon</a> By <a href="//www.iconfinder.com/Zerg">Sergei Kokota</a></th>
<td><a href="//creativecommons.org/licenses/by/3.0/">Creative Commons (Attribution 3.0 Unported)</a></td>
</tr>
</tbody>
</table>
{% endblock %} {% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment