X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..0f43b6ba435ae72565f7a1ccd942edfabc9d6d97:/src/picture/templates/picture/picture_viewer.html?ds=sidebyside
diff --git a/src/picture/templates/picture/picture_viewer.html b/src/picture/templates/picture/picture_viewer.html
index e169dbe0f..fa9d039bf 100644
--- a/src/picture/templates/picture/picture_viewer.html
+++ b/src/picture/templates/picture/picture_viewer.html
@@ -1,6 +1,6 @@
{% extends "catalogue/viewer_base.html" %}
{% load i18n %}
-{% load static from staticfiles %}
+{% load static from static %}
{% load catalogue_tags %}
{% load thumbnail %}
@@ -12,77 +12,92 @@
{% block js-dependencies %}
-
+
{% endblock %}
{% block no-menu-extra %}
-
+-
+ +
+ -
{% endblock %}
{% block menu %}
-+-
-
-
-
-
-
-{% trans "Objects" %}
-{% trans "Themes" %}
-
-
-
-
-
+ +
+ -
+
+
+ {% spaceless %}
+
+ {% with picture.get_previous as prev %}
+ {% if prev %}<{%endif %}
+ {% endwith %}
+ {% with picture.get_next as next %}
+ {% if next %}>{% endif %}
+ {% endwith %}
+
+ {% endspaceless %}
+
+
+
+
+
+ {% trans "Obiekty" context "na obrazie" %}
+ {% trans "Motywy" %}
+
+
+
+
-
+
{% endblock %}
{% block main %}
-
- {% thumbnail picture.image_file "700x500" as pic %}
-
+ {% thumbnail picture.image_file "700x500" as pic %}
+
-
- {% endthumbnail %}
-
+ data-width="{{pic.width}}" data-height="{{pic.height}}" style="background-image: url('{{pic.url}}'); width: {{pic.width}}px; height: {{pic.height}}px;">
+
+ {% endthumbnail %}
+
{% endblock %}
{% block footer %}
-{{ picture.html_file.read|safe }}
-
-
-
+ {{ picture.html_file.read.decode|safe }}
+
+
+
{% book_info picture %}
-
-
-
- {{ picture.short_html }}
-
+
+
+ {% include 'picture/picture_short.html' %}
+
{% endblock %}