fix
This commit is contained in:
parent
c4b20e21a7
commit
515680f876
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user