fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add link.
[redakcja.git]
/
src
/
documents
/
templates
/
documents
/
book_detail.html
diff --git
a/src/documents/templates/documents/book_detail.html
b/src/documents/templates/documents/book_detail.html
index
d9b06c7
..
be17ec1
100644
(file)
--- a/
src/documents/templates/documents/book_detail.html
+++ b/
src/documents/templates/documents/book_detail.html
@@
-37,8
+37,12
@@
</div>
<div class="col-md-4">
</div>
<div class="col-md-4">
- W katalogu:
- {{ book.catalogue_book }}
+ {% with cbook=book.catalogue_book %}
+ {% if cbook %}
+ W katalogu:
+ <a href="{% url 'catalogue_book' cbook.slug %}">{{ cbook }}</a>
+ {% endif %}
+ {% endwith %}
</div>
</div>
</div>
</div>
</div>
</div>