X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/eaf0711613bea8181528d8911b30ef7976b7bb42..c2e8051452fa55db096553cbe5ae622fc363d481:/src/picture/templates/picture/picture_wide.html?ds=sidebyside diff --git a/src/picture/templates/picture/picture_wide.html b/src/picture/templates/picture/picture_wide.html index 3ca7afe89..884b46caa 100644 --- a/src/picture/templates/picture/picture_wide.html +++ b/src/picture/templates/picture/picture_wide.html @@ -15,10 +15,11 @@ {% block extra_categories %} - {% if picture.extra_info.styles %} + {% with extra_info=picture.get_extra_info_json %} + {% if extra_info.styles %} {% trans "Style" %}:  - {% for tag in picture.extra_info.styles %} + {% for tag in extra_info.styles %} {{ tag }} {% if not forloop.last %}, {% endif %} {% endfor %} @@ -26,27 +27,28 @@ {% endif %} - {% if picture.extra_info.medium %} + {% if extra_info.medium %} {% trans "Medium" %}:  - {{ picture.extra_info.medium }} + {{ extra_info.medium }} {% endif %} - {% if picture.extra_info.original_dimensions %} + {% if extra_info.original_dimensions %} {% trans "Dimensions" %}:  - {{ picture.extra_info.original_dimensions }} + {{ extra_info.original_dimensions }} {% endif %} {% trans "Date" %}:  - {{ picture.extra_info.created_at }} + {{ extra_info.created_at }} + {% endwith %} {% endblock %} @@ -82,16 +84,17 @@ {% block right-column %} + {% with extra_info=picture.get_extra_info_json %}

{% trans "See" %}

+ {% endwith %} {% endblock %}