- {% if book.mobi_file %}
- <span><a href="{{ book.mobi_file.url}}">MOBI</a></span>
- {% endif %}
- {% if book.fb2_file %}
- <span><a href="{{ book.fb2_file.url}}">FB2</a></span>
- {% endif %}
- {% if book.txt_file %}
- <span><a href="{{ book.txt_file.url}}">TXT</a></span>
+ </li>
+ <li class="book-box-download">
+ <div class="book-box-formats">
+ {% trans "Pobierz ebook" %}:<br>
+ {% if book.pdf_file %}
+ <a href="{{ book.pdf_url}}">PDF</a>
+ {% endif %}
+ {% if book.epub_file %}
+ <a href="{{ book.epub_url}}">EPUB</a>
+ {% endif %}
+ {% if book.mobi_file %}
+ <a href="{{ book.mobi_url}}">MOBI</a>
+ {% endif %}
+ {% if book.fb2_file %}
+ <a href="{{ book.fb2_url}}">FB2</a>
+ {% endif %}
+ {% if book.txt_file %}
+ <a href="{{ book.txt_url}}">TXT</a>
+ {% endif %}
+ </div>
+ {% if book.has_mp3_file %}
+ <div class="book-box-formats">
+ {% trans "Pobierz audiobook" %}:<br>
+ {% download_audio book %}
+ </div>