Commit b876a03f authored by OzzieIsaacs's avatar OzzieIsaacs

- Changed link color on download button to white

- removed file icons on download button
- removed shadow style on download button
parent 6b71e774
This diff is collapsed.
...@@ -130,18 +130,29 @@ ...@@ -130,18 +130,29 @@
<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">
{% if entry.data|length < 3 %}
<button id="btnGroupDrop1" type="button" class="btn btn-primary"> <button id="btnGroupDrop1" type="button" class="btn btn-primary">
{{_('Download')}} : {{_('Download')}} :
</button> </button>
{% for format in entry.data %} {% for format in entry.data %}
<button id="btnGroupDrop1{{format.format|lower}}" type="button" class="btn btn-primary"> <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) }}"> <a class="button-link" 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> <span class="glyphicon glyphicon-download"></span>
{{format.format}} {{format.format}}
<span class="ebook-icon ebook-{{format.format|lower}}"></span>
</a> </a>
</button> </button>
{%endfor%} {% endfor %}
{% else %}
<button id="btnGroupDrop1" type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-download"></span> {{_('Download')}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="btnGroupDrop1">
{% 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>
{% endfor %}
</ul>
{% endif %}
</div> </div>
{% endif %} {% endif %}
......
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
</div> </div>
<div class="meta"> <div class="meta">
<p class="title">{{entry.title|shortentitle}}</p> <p class="title">{{entry.title|shortentitle}}</p>
{% if entry.authors|length > 0 %}
<p class="author"><a href="{{url_for('author', book_id=entry.authors[0].id) }}">{{entry.authors[0].name}}</a></p> <p class="author"><a href="{{url_for('author', book_id=entry.authors[0].id) }}">{{entry.authors[0].name}}</a></p>
{% endif %}
{% if entry.ratings.__len__() > 0 %} {% if entry.ratings.__len__() > 0 %}
<div class="rating"> <div class="rating">
{% for number in range((entry.ratings[0].rating/2)|int(2)) %} {% for number in range((entry.ratings[0].rating/2)|int(2)) %}
......
...@@ -88,18 +88,4 @@ ...@@ -88,18 +88,4 @@
</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