X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87e084d47c335cd6f0b3e91d614999f55d148044..ddf2102eff7ea420a4ea5144c43409587fc1156e:/src/picture/templates/picture/picture_wide.html diff --git a/src/picture/templates/picture/picture_wide.html b/src/picture/templates/picture/picture_wide.html index 462e8b0e2..884b46caa 100644 --- a/src/picture/templates/picture/picture_wide.html +++ b/src/picture/templates/picture/picture_wide.html @@ -6,92 +6,101 @@ {% block box-class %}book-wide-box{% endblock %} {% block picture-view %} - -{% thumbnail picture.image_file "535" upscale=0 as thumb %} - -{% endthumbnail %} + + {% thumbnail picture.image_file "535" upscale=0 as thumb %} + + {% endthumbnail %} + {% endblock %} {% block extra_categories %} -{% if picture.extra_info.styles %} - - {% trans "Style" %}:  - {% for tag in picture.extra_info.styles %} - {{ tag }} - {% if not forloop.last %}, {% endif %} - {% endfor %} - -{% endif %} + {% with extra_info=picture.get_extra_info_json %} + {% if extra_info.styles %} + + {% trans "Style" %}:  + {% for tag in extra_info.styles %} + {{ tag }} + {% if not forloop.last %}, {% endif %} + {% endfor %} + + + {% endif %} -{% if picture.extra_info.medium %} - - {% trans "Medium" %}:  - {{ picture.extra_info.medium }} - -{% endif %} + {% if extra_info.medium %} + + {% trans "Medium" %}:  + {{ extra_info.medium }} + + + {% endif %} -{% if picture.extra_info.original_dimensions %} - - {% trans "Dimensions" %}:  - {{ picture.extra_info.original_dimensions }} - -{% endif %} - - - {% trans "Date" %}:  - {{ picture.extra_info.created_at }} - + {% if extra_info.original_dimensions %} + + {% trans "Dimensions" %}:  + {{ extra_info.original_dimensions }} + + + {% endif %} + + {% trans "Date" %}:  + {{ extra_info.created_at }} + + + {% endwith %} {% endblock %} {% block book-box-extra-info %} -{% if themes or things%} + {% if themes or things%}
-

{% trans "Motifs, themes and objects" %}

-
- {% if themes %} -

{% trans "Motifs and themes" %}

+

+ {% trans "Motifs, themes and objects" %} +

+
+ {% if themes %} +

{% trans "Motifs and themes" %}

    {% for theme in themes %} -
  • {{ theme }}
  • - {% endfor %} -
- {% endif %} - {% if things %} -

{% trans "Objects" %}

+
  • {{ theme }}
  • + {% endfor %} + + {% endif %} + {% if things %} +

    {% trans "Objects" %}

    - {% endif %} -
    + {% endif %} +
    -{% else %} -

     

    -{% endif %} + {% else %} +

     

    + {% endif %} {% endblock %} {% block right-column %} -
    -
    -

    {% trans "See" %}

    - + {% with extra_info=picture.get_extra_info_json %} +
    +
    +

    {% trans "See" %}

    + +
    -
    + {% endwith %} {% endblock %}