cover image repo
[redakcja.git] / apps / cover / templates / cover / image_detail.html
1 {% extends "catalogue/base.html" %}
2 {% load i18n %}
3 {% load build_absolute_uri from common_tags %}
4
5 {% block content %}
6 <h1>{% trans "Cover image" %}</h1>
7
8 <div style="float: right">
9 <a href="{{ object.file.url }}"><img style="width:400px" src="{{ object.file.url }}" /></a>
10 <br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
11     {% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
12         {{ object.license_name }}</a>
13     {% if object.license_url %}</a>{% endif %}
14
15 <br/>{% trans "source" %}: {{ object.download_url }}
16 </div>
17
18 <form method="post">
19 {% csrf_token %}
20 {{ form.as_p }}
21 <input type="submit" value="{% trans "Change" %}" />
22 </form>
23
24 <textarea style="width:100%" rows="5">
25 &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>
26 &lt;dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}&lt;/dc:relation.coverImage.attribution>
27 &lt;dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.source_url }}&lt;/dc:relation.coverImage.source>
28 </textarea>
29 {% endblock %}