diff --git a/static/aerbimCSSMOBILE.css b/static/aerbimCSSMOBILE.css index 3836352..183d3d5 100644 --- a/static/aerbimCSSMOBILE.css +++ b/static/aerbimCSSMOBILE.css @@ -65,7 +65,7 @@ } .tree_documentation_container { width: unset; - height: 100vh; + height: calc(100vh - 172px); overflow-y: auto; padding: 0 15px; diff --git a/static/aerbimJS.js b/static/aerbimJS.js index eea05d2..c661c5d 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -99,6 +99,7 @@ function setInfInCurtainDocumentationMobile () { } function openDocCurtainMobile () { + $("body").css({'overflow':'hidden'}) let $curtain = $(".left_curtain_documentation") let $block_overlay = $(".block_overlay") $curtain.css({left:0}) @@ -108,6 +109,7 @@ function openDocCurtainMobile () { } function closeDocCurtainMobile () { + $("body").css({'overflow':'unset'}) let $curtain = $(".left_curtain_documentation") let $block_overlay = $(".block_overlay") $curtain.css({left:'-320px'}) diff --git a/templates/blocks/b_Pdocumentation_article.html b/templates/blocks/b_Pdocumentation_article.html new file mode 100644 index 0000000..2d533bb --- /dev/null +++ b/templates/blocks/b_Pdocumentation_article.html @@ -0,0 +1,37 @@ +{% load static %} +{% load i18n %} +
+{#
#} +{# #} +{#
#} +{#
#} +{# {{ cur_article.text }}#} +{#
#} + {{ cur_article.text|safe }} +
+
+ {% if prev_article %} + + + + + +
+ {% trans "Предыдущий" %} +
+ {% endif %} +
+
+ {% if next_article %} +
+ {% trans "Следующий" %} +
+ + + + + {% endif %} +
+
+ {% trans "Скачать в PDF" %} +
\ No newline at end of file diff --git a/templates/pages/p_documentation.html b/templates/pages/p_documentation.html index ee13234..4463871 100644 --- a/templates/pages/p_documentation.html +++ b/templates/pages/p_documentation.html @@ -117,41 +117,7 @@ {% endfor %} -
-{#
#} -{# #} -{#
#} -{#
#} -{# {{ cur_article.text }}#} -{#
#} - {{ cur_article.text|safe }} -
-
- {% if prev_article %} - - - - - -
- {% trans "Предыдущий" %} -
- {% endif %} -
-
- {% if next_article %} -
- {% trans "Следующий" %} -
- - - - - {% endif %} -
-
- {% trans "Скачать в PDF" %} -
+ {% include "blocks/b_Pdocumentation_article.html" %} {% endblock %} \ No newline at end of file