1 {% extends "catalogue/base.html" %}
4 {% load build_absolute_uri from fnp_common %}
7 <h1>{% trans "Cover image" %}</h1>
9 <div style="float: right; margin-bottom:1em;">
11 <a href="{{ object.file.url }}"><img
12 src="{% thumbnail object.file "565x833" as thumb %}
16 {% endthumbnail %}" />
18 <br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
19 {% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
20 {{ object.license_name }}
21 {% if object.license_url %}</a>{% endif %}
23 <br/>{% trans "source" %}: {{ object.download_url }}
28 <form method="post" enctype="multipart/form-data">
30 {{ form.non_field_errors }}
32 <table class='editable'><tbody>
35 <tr><td></td><td><button type="submit">{% trans "Change" %}</button></td></tr>
38 {% if editable %}</form>{% endif %}
41 <h2>{% trans "Used in:" %}</h2>
42 {% if object.book_set %}
44 {% for book in object.book_set.all %}
45 <li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
49 <p>{% trans "None" %}</p>
53 <textarea style="width:100%" rows="5">
54 <dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
55 <dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}</dc:relation.coverImage.attribution>
56 <dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}</dc:relation.coverImage.source>