fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update librarian
[redakcja.git]
/
apps
/
cover
/
templates
/
cover
/
image_detail.html
diff --git
a/apps/cover/templates/cover/image_detail.html
b/apps/cover/templates/cover/image_detail.html
index
16b8344
..
5707b29
100755
(executable)
--- a/
apps/cover/templates/cover/image_detail.html
+++ b/
apps/cover/templates/cover/image_detail.html
@@
-34,9
+34,21
@@
{% if editable %}</form>{% endif %}
{% 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">
<dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
<dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}</dc:relation.coverImage.attribution>
<textarea style="width:100%" rows="5">
<dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
<dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}</dc:relation.coverImage.attribution>
-<dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_
absolute_url|build_absolute_uri:request
}}</dc:relation.coverImage.source>
+<dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_
full_url
}}</dc:relation.coverImage.source>
</textarea>
{% endblock %}
</textarea>
{% endblock %}