fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Librarian in regular requirements.
[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
..
db9b176
100755
(executable)
--- a/
apps/cover/templates/cover/image_detail.html
+++ b/
apps/cover/templates/cover/image_detail.html
@@
-1,15
+1,17
@@
{% extends "catalogue/base.html" %}
{% load i18n %}
{% load thumbnail %}
{% extends "catalogue/base.html" %}
{% load i18n %}
{% load thumbnail %}
-{% load build_absolute_uri from common_tags %}
+{% load build_absolute_uri from fnp_common %}
+
+{% block titleextra %}{% trans "Cover image" %}{% endblock %}
{% block content %}
<h1>{% trans "Cover image" %}</h1>
<div style="float: right; margin-bottom:1em;">
{% block content %}
<h1>{% trans "Cover image" %}</h1>
<div style="float: right; margin-bottom:1em;">
-<a href="{{ object.file.url }}"><img
style="width:400px"
- src="{% thumbnail object.file "
400x
" as thumb %}
+<a href="{{ object.file.url }}"><img
+ src="{% thumbnail object.file "
565x833
" as thumb %}
{{ thumb.url }}
{% empty %}
{{ object.file.url }}
{{ thumb.url }}
{% empty %}
{{ object.file.url }}
@@
-17,14
+19,17
@@
</a>
<br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
{% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
</a>
<br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
{% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
- {{ object.license_name }}
</a>
+ {{ object.license_name }}
{% if object.license_url %}</a>{% endif %}
<br/>{% trans "source" %}: {{ object.download_url }}
</div>
{% if object.license_url %}</a>{% endif %}
<br/>{% trans "source" %}: {{ object.download_url }}
</div>
-{% if editable %}<form method="post">{% csrf_token %}{% endif %}
+{% if editable %}
+ <form method="post" enctype="multipart/form-data">
+ {% csrf_token %}
+{% endif %}
<table class='editable'><tbody>
{{ form.as_table }}
{% if editable %}
<table class='editable'><tbody>
{{ form.as_table }}
{% if editable %}
@@
-34,9
+39,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 %}