Add link.
[redakcja.git] / src / documents / templates / documents / book_detail.html
index d9b06c7..be17ec1 100644 (file)
 
        </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>