X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e96eab03b81641de7b74f22610bb7cd3a2db8432..87bd94a94dc6cc3dbf47db2bdd17761b3f400138:/src/cover/templates/cover/image_detail.html diff --git a/src/cover/templates/cover/image_detail.html b/src/cover/templates/cover/image_detail.html index 4b8f73f7..2d43f9e0 100644 --- a/src/cover/templates/cover/image_detail.html +++ b/src/cover/templates/cover/image_detail.html @@ -1,53 +1,94 @@ {% extends "documents/base.html" %} -{% load i18n %} +{% load i18n l10n %} {% load thumbnail %} {% load build_absolute_uri from fnp_common %} +{% load bootstrap4 %} {% block titleextra %}{% trans "Cover image" %}{% endblock %} {% block content %} -

{% trans "Cover image" %}

+

{% trans "Cover image" %}

+
+
-
- - -
{{ object.title }} by {{ object.author }}, - {% if object.license_url %}{% endif %} - {{ object.license_name }} - {% if object.license_url %}{% endif %} -
-{% if editable %} -
- {% csrf_token %} -{% endif %} - - {{ form.as_table }} - {% if editable %} - - {% endif %} -
-{% if editable %}
{% endif %} - - -

{% trans "Used in:" %}

-{% if object.book_set %} - -{% else %} -

{% trans "None" %}

-{% endif %} - - - +<dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.attribution }}</dc:relation.coverImage.attribution> +<dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_full_url }}</dc:relation.coverImage.source> + +
+
+

{% trans "Used in:" %}

+
+
+ {% if object.book_set.exists %} +
    + {% for book in object.book_set.all %} +
  • + + {{ book }} + +
  • +
  • + + {{ book }} + +
  • + {% endfor %} +
+ {% else %} +

{% trans "None" %}

+ {% endif %} +
+
+ + {% endblock %}