X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c4b4a64757ba65018dc24334cb44a12ad2a4316a..4eb94bff750a1f229f2df95f93e3628e001b6400:/wolnelektury/templates/catalogue/book_detail.html diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html index 4a8a9313c..f4e77f81f 100644 --- a/wolnelektury/templates/catalogue/book_detail.html +++ b/wolnelektury/templates/catalogue/book_detail.html @@ -13,8 +13,20 @@ </form> <div id="books-list"> + <div id='breadcrumbs'> + {% if categories.author %} + {% for tag in categories.author %} + <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %} + {% endfor %} + » + {% endif %} + {% for parent in parents %} + <a href="{{ parent.get_absolute_url }}">{{ parent }}</a> » + {% endfor %} + </div> + {% if extra_info.license %} - <p>{% trans "Work is licensed under " %}<a href="{{ extra_info.license }}">{{ extra_info.license_description }}</a>.</p> + <p>{% trans "Work is licensed under " %} <a href="{{ extra_info.license }}">{{ extra_info.license_description }}</a>.</p> {% endif %} <p>{% trans "Based on" %}: {{ extra_info.source_name }}</p> {% if book.has_description %} @@ -34,8 +46,8 @@ {% if book.pdf_file %} <a href="{{ book.pdf_file.url }}">{% trans "Download PDF" %}</a> {% endif %} - {% if book.epub_file %} - <a href="{{ book.epub_file.url }}">{% trans "Download EPUB" %}</a> + {% if book.root_ancestor.epub_file %} + <a href="{{ book.root_ancestor.epub_file.url }}">{% trans "Download EPUB" %}</a> {% endif %} {% if book.odt_file %} <a href="{{ book.odt_file.url }}">{% trans "Download ODT" %}</a> @@ -54,6 +66,7 @@ {% endif %} {% if book.mp3_file %}<a href="{{ book.mp3_file.url }}">{% trans "Download MP3" %}</a>{% endif %} {% if book.ogg_file %}<a href="{{ book.ogg_file.url }}">{% trans "Download Ogg Vorbis" %}</a>{% endif %} + {% if book.daisy_file %}<a href="{{ book.daisy_file.url }}">{% trans "Download DAISY" %}</a>{% endif %} {% if book.mp3_file %} <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="{{ STATIC_URL }}player.swf" width="426" height="20"> <param name="movie" value="{{ STATIC_URL }}player.swf" /> @@ -111,7 +124,9 @@ <h2>{% trans "Other resources" %}</h2> <ul> <li><a href="{{ extra_info.about }}">{% trans "Book on project's wiki" %}</a></li> + {% if extra_info.source_url %} <li><a href="{{ extra_info.source_url }}">{% trans "Source of the book" %}</a></li> + {% endif %} {% if book.gazeta_link %} <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li> {% endif %}