X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..ce3795b6c4f878c496b4d46193e3379f8efb077b:/src/picture/templates/picture/picture_viewer.html diff --git a/src/picture/templates/picture/picture_viewer.html b/src/picture/templates/picture/picture_viewer.html index e169dbe0f..3bd27b66b 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 %} -
  • +-
  • - - -
  • - {{ picture.pretty_title }} -
  • - - -
  • {% 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 %} + +
  • + + {{ picture.pretty_title }} + +
  • + +
  • {% trans "Objects" %}
  • +
  • {% trans "Themes" %}
  • + + + +
  • {% for sponsor in sponsors %} - {% thumbnail sponsor.logo "80x200" as logo %} - {{ sponsor.name }} - {% endthumbnail %} + {% thumbnail sponsor.logo "120x300" as logo %} + {{ sponsor.name }} + {% endthumbnail %} {% endfor %} -
  • - + {% 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 }} - -
    -
    - Wolne Lektury - - {% for sponsor in sponsors %} - {% thumbnail sponsor.logo "220x220" as logo %} - {{ sponsor.name }} - {% endthumbnail %} - {% endfor %} -
    + {{ picture.html_file.read|safe }} + +
    +
    + + Wolne Lektury + + {% for sponsor in sponsors %} + {% thumbnail sponsor.logo "220x220" as logo %} + {{ sponsor.name }} + {% endthumbnail %} + {% endfor %} +
    {% book_info picture %} -
    - -
    - {{ picture.short_html }} -
    +
    +
    + {% include 'picture/picture_short.html' %} +
    {% endblock %}