This commit is contained in:
vladislav 2026-08-13 13:41:33 -04:00
parent c4b20e21a7
commit 515680f876
Signed by: Vladislav
GPG Key ID: D97C9E5E4860EE45

View File

@ -17,16 +17,17 @@
<div class="c_ru432"> <div class="c_ru432">
{{ profile_nav.profile_nav(user, 'exhibitions') }} {{ profile_nav.profile_nav(user, 'exhibitions') }}
<div class="c_3ihvi" id="main"> <div class="c_3ihvi" id="main">
{% if now < exhibition.date_finish %}
<a class="b_289i1" href="/profile/partner/exhibition/{{exhibition._id}}/catalog#main"> <a class="b_289i1" href="/profile/partner/exhibition/{{exhibition._id}}/catalog#main">
<span class="c_d2l0b b_al8e7">Каталог картин</span> <span class="c_d2l0b b_al8e7">Каталог картин</span>
</a> </a>
{% endif %}
{% set ids = posts {% set ids = posts
| selectattr('status', 'equalto', 'В каталоге') | selectattr('status', 'equalto', 'В каталоге')
| map(attribute='user._id') | map(attribute='user._id')
| list | list
%} %}
{% set uniq_count = ids | unique | list | length %} {% set uniq_count = ids | unique | list | length %}
{% if uniq_count > 0 %} {% if uniq_count > 0 %}
<button class="b_289i1" onclick="sendInvitations('{{exhibition._id}}')" href="/profile/partner/exhibition/{{exhibition._id}}/catalog#main"> <button class="b_289i1" onclick="sendInvitations('{{exhibition._id}}')" href="/profile/partner/exhibition/{{exhibition._id}}/catalog#main">
<span class="c_d2l0b b_al8e7">Отправить приглашени{% if uniq_count > 1 %}я{% else %}е{% endif %}</span> <span class="c_d2l0b b_al8e7">Отправить приглашени{% if uniq_count > 1 %}я{% else %}е{% endif %}</span>