1 {% extends "catalogue/base.html" %}
4 {% load build_absolute_uri from common_tags %}
7 <h1>{% trans "Cover image" %}</h1>
9 <div style="float: right; margin-bottom:1em;">
11 <a href="{{ object.file.url }}"><img style="width:400px"
12 src="{% thumbnail object.file "400x" 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 }}</a>
21 {% if object.license_url %}</a>{% endif %}
23 <br/>{% trans "source" %}: {{ object.download_url }}
27 {% if editable %}<form method="post">{% csrf_token %}{% endif %}
28 <table class='editable'><tbody>
31 <tr><td></td><td><button type="submit">{% trans "Change" %}</button></td></tr>
34 {% if editable %}</form>{% endif %}
37 <h2>{% trans "Used in:" %}</h2>
38 {% if object.book_set %}
40 {% for book in object.book_set.all %}
41 <li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
45 <p>{% trans "None" %}</p>
49 <textarea style="width:100%" rows="5">
50 <dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
51 <dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}</dc:relation.coverImage.attribution>
52 <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>