documentation page
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
}
|
||||
.tree_documentation_container {
|
||||
width: unset;
|
||||
height: 100vh;
|
||||
height: calc(100vh - 172px);
|
||||
overflow-y: auto;
|
||||
padding: 0 15px;
|
||||
|
||||
|
||||
@@ -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'})
|
||||
|
||||
37
templates/blocks/b_Pdocumentation_article.html
Normal file
37
templates/blocks/b_Pdocumentation_article.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
<div class="content_part_tree_els">
|
||||
{# <div class="name_article_tree">#}
|
||||
{# #}
|
||||
{# </div>#}
|
||||
{# <div class="description_article_tree">#}
|
||||
{# {{ cur_article.text }}#}
|
||||
{# </div>#}
|
||||
{{ cur_article.text|safe }}
|
||||
<div class="controls_content_part_tree_els">
|
||||
<div class="control_content_part_tree_el left">
|
||||
{% if prev_article %}
|
||||
<picture class="arrow_control_content_part_tree_el_picture">
|
||||
<source srcset="{% static "images/arrow_control_part_tree_el.svg" %}">
|
||||
<img class="arrow_control_content_part_tree_el_img" src="{% static "images/arrow_control_part_tree_el.svg" %}" alt="">
|
||||
</picture>
|
||||
|
||||
<div class="txt_control_content_part_tree_el" data-url="{% url 'docs_art_page' cur_version.url prev_article.url %}" onclick="changeCurArticle(this)">
|
||||
{% trans "Предыдущий" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="control_content_part_tree_el right">
|
||||
{% if next_article %}
|
||||
<div class="txt_control_content_part_tree_el" data-url="{% url 'docs_art_page' cur_version.url next_article.url %}" onclick="changeCurArticle(this)">
|
||||
{% trans "Следующий" %}
|
||||
</div>
|
||||
<picture class="arrow_control_content_part_tree_el_picture">
|
||||
<source srcset="{% static "images/arrow_control_part_tree_el.svg" %}">
|
||||
<img class="arrow_control_content_part_tree_el_img" src="{% static "images/arrow_control_part_tree_el.svg" %}" alt="">
|
||||
</picture>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn_download_in_pdf" href="">{% trans "Скачать в PDF" %}</a>
|
||||
</div>
|
||||
@@ -117,41 +117,7 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="content_part_tree_els">
|
||||
{# <div class="name_article_tree">#}
|
||||
{# #}
|
||||
{# </div>#}
|
||||
{# <div class="description_article_tree">#}
|
||||
{# {{ cur_article.text }}#}
|
||||
{# </div>#}
|
||||
{{ cur_article.text|safe }}
|
||||
<div class="controls_content_part_tree_els">
|
||||
<div class="control_content_part_tree_el left">
|
||||
{% if prev_article %}
|
||||
<picture class="arrow_control_content_part_tree_el_picture">
|
||||
<source srcset="{% static "images/arrow_control_part_tree_el.svg" %}">
|
||||
<img class="arrow_control_content_part_tree_el_img" src="{% static "images/arrow_control_part_tree_el.svg" %}" alt="">
|
||||
</picture>
|
||||
|
||||
<div class="txt_control_content_part_tree_el" data-url="{% url 'docs_art_page' cur_version.url prev_article.url %}" onclick="changeCurArticle(this)">
|
||||
{% trans "Предыдущий" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="control_content_part_tree_el right">
|
||||
{% if next_article %}
|
||||
<div class="txt_control_content_part_tree_el" data-url="{% url 'docs_art_page' cur_version.url next_article.url %}" onclick="changeCurArticle(this)">
|
||||
{% trans "Следующий" %}
|
||||
</div>
|
||||
<picture class="arrow_control_content_part_tree_el_picture">
|
||||
<source srcset="{% static "images/arrow_control_part_tree_el.svg" %}">
|
||||
<img class="arrow_control_content_part_tree_el_img" src="{% static "images/arrow_control_part_tree_el.svg" %}" alt="">
|
||||
</picture>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn_download_in_pdf" href="">{% trans "Скачать в PDF" %}</a>
|
||||
</div>
|
||||
{% include "blocks/b_Pdocumentation_article.html" %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user