X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8bbef0daa6dbf65ba306eeee0d3cc39b76ff75fb..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 85fda98f..2d43f9e0 100644 --- a/src/cover/templates/cover/image_detail.html +++ b/src/cover/templates/cover/image_detail.html @@ -1,59 +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" %}

- -
- - - -
{{ object.title }} by {{ object.author }}, - {% if object.license_url %}{% endif %} - {{ object.license_name }} - {% if object.license_url %}{% endif %} - -
{% trans "source" %}: {{ object.download_url }} +

{% trans "Cover image" %}

+
+
+ + + + + + {% if editable %} +
+ {% csrf_token %} + {% endif %} + + {% bootstrap_form form %} + {% if editable %} + {% buttons %} + + {% endbuttons %} + {% endif %} +
+ {% if editable %}
{% endif %} +
+ + +
+ {% with perc=object.cut_percentages %} + + {% thumbnail object.file perc.th as th %} + + {% endthumbnail %} + {% localize off %} +
+
+
+
+ {% endlocalize %} + {% endwith %} +
+
{{ object.title }} by {{ object.author }}, + {% if object.license_url %}{% endif %} + {{ object.license_name }} + {% if object.license_url %}{% endif %} + + {% if object.example %} +
+ +
+ {% endif %} +
+
+ + + + +
+
+

{% trans "Used in:" %}

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

{% trans "None" %}

+ {% 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 %} - - - {% endblock %}