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

Change Download Style.

parent b8fa748c
This diff is collapsed.
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<p> <p>
<div class="tags"> <div class="tags">
<span class="glyphicon glyphicon-tags"></span> <span class="glyphicon glyphicon-tags"></span>
{% for tag in entry.tags %} {% for tag in entry.tags %}
<a href="{{ url_for('category', book_id=tag.id) }}" class="btn btn-xs btn-info" role="button">{{tag.name}}</a> <a href="{{ url_for('category', book_id=tag.id) }}" class="btn btn-xs btn-info" role="button">{{tag.name}}</a>
{%endfor%} {%endfor%}
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<div class="custom_columns"> <div class="custom_columns">
{% for c in cc %} {% for c in cc %}
{% if entry['custom_column_' ~ c.id]|length > 0 %} {% if entry['custom_column_' ~ c.id]|length > 0 %}
{{ c.name }}: {{ c.name }}:
{% for column in entry['custom_column_' ~ c.id] %} {% for column in entry['custom_column_' ~ c.id] %}
{% if c.datatype == 'rating' %} {% if c.datatype == 'rating' %}
{{ '%d' % (column.value / 2) }} {{ '%d' % (column.value / 2) }}
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
{% endfor %} {% endfor %}
</div> </div>
</p> </p>
{% endif %} {% endif %}
{% if not g.user.is_anonymous() %} {% if not g.user.is_anonymous() %}
<p> <p>
<div class="custom_columns" id="have_read_container"> <div class="custom_columns" id="have_read_container">
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
</div> </div>
</p> </p>
{% endif %} {% endif %}
{% if entry.comments|length > 0 and entry.comments[0].text|length > 0%} {% if entry.comments|length > 0 and entry.comments[0].text|length > 0%}
<h3>{{_('Description:')}}</h3> <h3>{{_('Description:')}}</h3>
...@@ -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 %}
...@@ -160,7 +163,7 @@ ...@@ -160,7 +163,7 @@
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
</div> </div>
</div> </div>
</br> </br>
{% if g.user.is_authenticated %} {% if g.user.is_authenticated %}
...@@ -183,7 +186,7 @@ ...@@ -183,7 +186,7 @@
{% endif %} {% endif %}
{%endfor%} {%endfor%}
</ul> </ul>
</div> </div>
{% if books_shelfs %} {% if books_shelfs %}
<div class="btn-group" role="group" aria-label="Remove from shelves"> <div class="btn-group" role="group" aria-label="Remove from shelves">
{% for shelf in g.user.shelf %} {% for shelf in g.user.shelf %}
...@@ -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