cover: track used covers
[redakcja.git] / apps / cover / templates / cover / image_detail.html
index 16b8344..1509f44 100755 (executable)
 {% if editable %}</form>{% endif %}
 
 
+<h2>{% trans "Used in:" %}</h2>
+{% if object.book_set %}
+<ul>
+    {% for book in object.book_set.all %}
+        <li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
+    {% endfor %}
+</ul>
+{% else %}
+    <p>{% trans "None" %}</p>
+{% endif %}
+
+
 <textarea style="width:100%" rows="5">
 &lt;dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}&lt;/dc:relation.coverImage.url>
 &lt;dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}&lt;/dc:relation.coverImage.attribution>