fix
This commit is contained in:
parent
c4b20e21a7
commit
515680f876
@ -17,16 +17,17 @@
|
||||
<div class="c_ru432">
|
||||
{{ profile_nav.profile_nav(user, 'exhibitions') }}
|
||||
<div class="c_3ihvi" id="main">
|
||||
{% if now < exhibition.date_finish %}
|
||||
<a class="b_289i1" href="/profile/partner/exhibition/{{exhibition._id}}/catalog#main">
|
||||
<span class="c_d2l0b b_al8e7">Каталог картин</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% set ids = posts
|
||||
| selectattr('status', 'equalto', 'В каталоге')
|
||||
| map(attribute='user._id')
|
||||
| list
|
||||
%}
|
||||
{% set uniq_count = ids | unique | list | length %}
|
||||
|
||||
{% if uniq_count > 0 %}
|
||||
<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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user