Public product wall: stop hiding CommuniGate Pro USER
The wall used to hide communigate-pro-user and show communigate-pro-admin under a generic CommuniGate Pro label instead - a dedup for when both existed as active services. ADMIN is inactive now (deliberately, USER is the one meant to be public-facing), so the exclusion of USER left neither showing on the wall at all. Just list public_services as-is. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -264,14 +264,12 @@
|
|||||||
|
|
||||||
<button type="button" class="lg2-distrib-btn" onclick="window.open(location.hostname==='stand.mont.ru'?'https://maps.mont.ru':'https://maps.4mont.ru','_blank')">Продукты нашей дистрибуции</button>
|
<button type="button" class="lg2-distrib-btn" onclick="window.open(location.hostname==='stand.mont.ru'?'https://maps.mont.ru':'https://maps.4mont.ru','_blank')">Продукты нашей дистрибуции</button>
|
||||||
|
|
||||||
{% set wall_services = public_services|rejectattr('slug', 'equalto', 'communigate-pro-user')|list %}
|
{% if public_services %}
|
||||||
{% if wall_services %}
|
<div class="lg2-wall-head" id="products"><h2>Что на полигоне</h2><span class="lg2-wall-count">{{ public_services|length }} продуктов</span></div>
|
||||||
<div class="lg2-wall-head" id="products"><h2>Что на полигоне</h2><span class="lg2-wall-count">{{ wall_services|length }} продуктов</span></div>
|
|
||||||
<div class="lg2-logo-wall">
|
<div class="lg2-logo-wall">
|
||||||
{% for service in wall_services %}
|
{% for service in public_services %}
|
||||||
{% set wall_name = 'CommuniGate Pro' if service.slug == 'communigate-pro-admin' else service.name %}
|
<a class="lg2-wall-tile" href="/product/{{ service.slug }}" title="{{ service.name }} — подробнее">
|
||||||
<a class="lg2-wall-tile" href="/product/{{ service.slug }}" title="{{ wall_name }} — подробнее">
|
<img src="{{ service.icon_path or '/static/service-placeholder.svg' }}" alt="{{ service.name }}" />
|
||||||
<img src="{{ service.icon_path or '/static/service-placeholder.svg' }}" alt="{{ wall_name }}" />
|
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user