diff --git a/Web-documentation/blocks/comment.html.twig b/Web-documentation/blocks/comment.html.twig new file mode 100644 index 0000000..0f0e5b3 --- /dev/null +++ b/Web-documentation/blocks/comment.html.twig @@ -0,0 +1,4 @@ +{%- if comment is not null -%} +

Комментарий

+

{{ comment }}

+{%- endif -%} \ No newline at end of file diff --git a/Web-documentation/methods.html.twig b/Web-documentation/methods.html.twig index 1eaed1f..8ebf055 100644 --- a/Web-documentation/methods.html.twig +++ b/Web-documentation/methods.html.twig @@ -119,10 +119,8 @@

Описание

{{ description }}

- {% if comment is not null -%} -

Комментарий

-

{{ comment }}

- {%- endif %} + {%- include 'blocks/comment.html.twig' with { comment: comment } %} + diff --git a/Web-documentation/structure_enumeration.html.twig b/Web-documentation/structure_enumeration.html.twig index 5ca174e..1c8f589 100644 --- a/Web-documentation/structure_enumeration.html.twig +++ b/Web-documentation/structure_enumeration.html.twig @@ -31,10 +31,7 @@

Описание

{{ description }}

- {% if comment is not null -%} -

Комментарий

-

{{ comment }}

- {%- endif %} + {%- include 'blocks/comment.html.twig' with { comment: comment } %}

Возможные значения

diff --git a/Web-documentation/structure_objects.html.twig b/Web-documentation/structure_objects.html.twig index 684c996..2d38961 100644 --- a/Web-documentation/structure_objects.html.twig +++ b/Web-documentation/structure_objects.html.twig @@ -34,10 +34,7 @@

Описание

{{ description }}

- {% if comment is not null -%} -

Комментарий

-

{{ comment }}

- {%- endif %} + {%- include 'blocks/comment.html.twig' with { comment: comment } %}

Структура данных