small refactoring

This commit is contained in:
Ivan Smolin 2017-10-16 14:20:02 +03:00
parent c3f9b5fcc1
commit 490480bf9e
4 changed files with 8 additions and 12 deletions

View File

@ -0,0 +1,4 @@
{%- if comment is not null -%}
<h2>Комментарий</h2>
<p class="sub-header">{{ comment }}</p>
{%- endif -%}

View File

@ -119,10 +119,8 @@
<h2>Описание</h2>
<p class="sub-header">{{ description }}</p>
{% if comment is not null -%}
<h2>Комментарий</h2>
<p class="sub-header">{{ comment }}</p>
{%- endif %}
{%- include 'blocks/comment.html.twig' with { comment: comment } %}
</div>
</div>
</div>

View File

@ -31,10 +31,7 @@
<h2>Описание</h2>
<p class="sub-header">{{ description }}</p>
{% if comment is not null -%}
<h2>Комментарий</h2>
<p class="sub-header">{{ comment }}</p>
{%- endif %}
{%- include 'blocks/comment.html.twig' with { comment: comment } %}
<h2>Возможные значения</h2>
<div class="table table--small">

View File

@ -34,10 +34,7 @@
<h2>Описание</h2>
<p class="sub-header">{{ description }}</p>
{% if comment is not null -%}
<h2>Комментарий</h2>
<p class="sub-header">{{ comment }}</p>
{%- endif %}
{%- include 'blocks/comment.html.twig' with { comment: comment } %}
<h2>Структура данных</h2>
<div class="table">