Сохранить пустое состояние профиля только с новостями
This commit is contained in:
1 parent
efc310acad
commit
ed35996fd4
1 file changed
+2
-2
@@ -126,7 +126,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% set profile_sections = employee_view.sections | rejectattr('type', 'in', ['news', 'additional_education']) | list %}
|
{% set profile_sections = employee_view.sections | rejectattr('type', 'in', ['news', 'additional_education']) | list %}
|
||||||
{% if profile_sections or not employee_view.sections %}
|
{% if profile_sections or not (employee_view.sections | selectattr('type', 'equalto', 'additional_education') | list) %}
|
||||||
<section class="employee-card__section">
|
<section class="employee-card__section">
|
||||||
<h3 class="employee-section__title">Разделы профиля</h3>
|
<h3 class="employee-section__title">Разделы профиля</h3>
|
||||||
{% if profile_sections %}
|
{% if profile_sections %}
|
||||||
@@ -241,7 +241,7 @@
|
|||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% elif not employee_view.sections %}
|
{% else %}
|
||||||
<p class="employee-section__text">Разделы профиля не найдены.</p>
|
<p class="employee-section__text">Разделы профиля не найдены.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in new issue
Block a user