X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9c13fb6245a966d5890b11e7e0d8ccb6692cfacd..0a693dbc08fd1c2c95538f627985fc03f9e3b684:/wolnelektury/templates/lessons/document_detail.html diff --git a/wolnelektury/templates/lessons/document_detail.html b/wolnelektury/templates/lessons/document_detail.html index afc3d69db..e55454853 100644 --- a/wolnelektury/templates/lessons/document_detail.html +++ b/wolnelektury/templates/lessons/document_detail.html @@ -1,22 +1,8 @@ -{% extends 'base.html' %} -{% load i18n %} - -{% block title %}{{ object.title }} w WolneLektury.pl{% endblock %} - -{% block body %} -

{{ object.title }}

-
-

{{ form.q }} {% trans "or" %} {% trans "return to list of materials" %}

-
- -
-

{% trans "Download" %} {% if object.author %}({% trans "author" %}: {{ object.author }}){% endif %}

- {% if object.slideshare_id %} - - - {% endif %} - {% if object.description %} -

{{ object.description|urlize|linebreaks }}

- {% endif %} -
-{% endblock body %} \ No newline at end of file +{% if not object.html %} + {% if object.slideshare_id %} + + + {% endif %} +{% else %} + {{ object.html|safe }} +{% endif %}