1 {% extends "documents/base.html" %}
4 {% load build_absolute_uri from fnp_common %}
6 {% block titleextra %}{% trans "Cover image" %}{% endblock %}
9 <h1>{% trans "Cover image" %}</h1>
11 <div style="float: right; margin-bottom:1em;">
13 <a href="{{ object.file.url }}"><img
14 src="{% thumbnail object.file "565x833" as thumb %}
18 {% endthumbnail %}" />
20 <br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
21 {% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
22 {{ object.license_name }}
23 {% if object.license_url %}</a>{% endif %}
25 <br/>{% trans "source" %}: {{ object.download_url }}
30 <form method="post" enctype="multipart/form-data">
33 <table class='editable'><tbody>
36 <tr><td></td><td><button type="submit">{% trans "Change" %}</button></td></tr>
39 {% if editable %}</form>{% endif %}
42 <h2>{% trans "Used in:" %}</h2>
43 {% if object.book_set %}
45 {% for book in object.book_set.all %}
46 <li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
50 <p>{% trans "None" %}</p>
54 <textarea style="width:100%" rows="5">
55 <dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
56 <dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}</dc:relation.coverImage.attribution>
57 <dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}</dc:relation.coverImage.source>