Сохранить пустое состояние профиля только с новостями
CI / test (pull_request) Successful in 11m0s
CI / Fingerprint diagnostics (production deployment temporarily disabled) (pull_request) Skipped

This commit is contained in:
codex committed 2026-11-27 12:31:07 +03:00
1 parent efc310acad
commit ed35996fd4
1 file changed
+2 -2
+2 -2
View File
@@ -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>