fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes #309: breadcrumbs to parent books
[wolnelektury.git]
/
wolnelektury
/
templates
/
catalogue
/
book_detail.html
diff --git
a/wolnelektury/templates/catalogue/book_detail.html
b/wolnelektury/templates/catalogue/book_detail.html
index
4a8a931
..
cb5dee0
100644
(file)
--- a/
wolnelektury/templates/catalogue/book_detail.html
+++ b/
wolnelektury/templates/catalogue/book_detail.html
@@
-13,8
+13,17
@@
</form>
<div id="books-list">
</form>
<div id="books-list">
+ {% if parents %}
+ <div id='breadcrumbs'>
+ {% for parent in parents %}
+ <a href="{{ parent.get_absolute_url }}">{{ parent }}</a>
+ {% if not forloop.last %}»{% endif %}
+ {% endfor %}
+ </div>
+ {% endif %}
+
{% if extra_info.license %}
{% 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 %}
{% endif %}
<p>{% trans "Based on" %}: {{ extra_info.source_name }}</p>
{% if book.has_description %}