X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..ddf2102eff7ea420a4ea5144c43409587fc1156e:/src/catalogue/templates/catalogue/picture_detail.html diff --git a/src/catalogue/templates/catalogue/picture_detail.html b/src/catalogue/templates/catalogue/picture_detail.html index b8b70c6be..9cb0b1973 100644 --- a/src/catalogue/templates/catalogue/picture_detail.html +++ b/src/catalogue/templates/catalogue/picture_detail.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base/base.html" %} {% load i18n %} {% load catalogue_tags pagination_tags %} {% load thumbnail %} @@ -9,86 +9,82 @@ {% block bodyid %}picture-detail{% endblock %} {% block body %} -

{{picture.title}}

+

{{picture.title}}

-
- +
+ + + {% thumbnail picture.image_file "400x500" upscale="false" as im %} + + {% endthumbnail %} - {% thumbnail picture.image_file "400x500" upscale="false" as im %} - - {% endthumbnail %} + {% if picture.info.license %} +

{% trans "Work is licensed under " %} {{ picture.info.license_description }}.

+ {% endif %} +

{% trans "Based on" %}: {{ picture.info.source_name }}

+ {% if picture.info.description %} +
+
{{ picture.info.description|safe }}
+ {#
{{ picture.info.description|safe|truncatewords_html:30 }}
#} +
+

+ {% endif %} +
- {% if picture.info.license %} -

{% trans "Work is licensed under " %} {{ picture.info.license_description }}.

+
+
+

{% trans "Details" %}

+
    +
  • + {% trans "Author" %}: + {% for tag in categories.author %} + {{ tag }}{% if not forloop.last %}, {% endif %} + {% endfor %} +
  • +
  • + {% trans "Epoch" %}: + {% for tag in categories.epoch %} + {{ tag }}{% if not forloop.last %}, {% endif %} + {% endfor %} +
  • +
  • + {% trans "Kind" %}: + {% for tag in categories.kind %} + {{ tag }}{% if not forloop.last %}, {% endif %} + {% endfor %} +
  • +
+

{% trans "Other resources" %}

+
    + {% if picture.info.source_url %} +
  • {% trans "Source of the image" %}
  • {% endif %} -

    {% trans "Based on" %}: {{ picture.info.source_name }}

    - {% if picture.info.description %} -
    -
    {{ picture.info.description|safe }}
    -{%comment%}
    {{ picture.info.description|safe|truncatewords_html:30 }}
    {%endcomment%} -
    -

    + {% if picture.info.about and not hide_about %} +
  • {% trans "Image on the Editor's Platform" %}
  • {% endif %} - +
+

{% trans "View XML source" %}

- -
-
-

{% trans "Details" %}

-
    -
  • - {% trans "Author" %}: - {% for tag in categories.author %} - {{ tag }}{% if not forloop.last %}, {% endif %} - {% endfor %} -
  • -
  • - {% trans "Epoch" %}: - {% for tag in categories.epoch %} - {{ tag }}{% if not forloop.last %}, {% endif %} - {% endfor %} -
  • -
  • - {% trans "Kind" %}: - {% for tag in categories.kind %} - {{ tag }}{% if not forloop.last %}, {% endif %} - {% endfor %} -
  • -
-

{% trans "Other resources" %}

- -

{% trans "View XML source" %}

-
-
-

{% trans "Work's themes " %}

- -
-
+
+

{% trans "Work's themes " %}

+
+
+
+{% endblock %} + + +{% block extrabody %} + {% javascript "picture" %} {% endblock %}