diff --git a/app/templates/employee_detail.html b/app/templates/employee_detail.html index 5c5230b..696a43e 100644 --- a/app/templates/employee_detail.html +++ b/app/templates/employee_detail.html @@ -126,7 +126,7 @@ {% endif %} {% 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) %} Разделы профиля {% if profile_sections %} @@ -241,7 +241,7 @@ {% endfor %} - {% elif not employee_view.sections %} + {% else %} Разделы профиля не найдены. {% endif %}
Разделы профиля не найдены.