hide offering when provider unlisted

This commit is contained in:
Tobias Brunner 2025-03-12 10:16:09 +01:00
parent 3f6fc4a86e
commit 1a7d1b6c5c
No known key found for this signature in database

View file

@ -33,6 +33,7 @@
<h3 class="fw-semibold mb-12">Cloud Providers</h3> <h3 class="fw-semibold mb-12">Cloud Providers</h3>
<ul class="list-unstyled space-y-12 fs-19 ps-0"> <ul class="list-unstyled space-y-12 fs-19 ps-0">
{% for offering in service.offerings.all %} {% for offering in service.offerings.all %}
{% if not offering.cloud_provider.disable_listing %}
<li> <li>
<a class="d-flex align-items-center text-gray-500 h-32 lh-32" href="{% url 'services:offering_detail' offering.cloud_provider.slug offering.service.slug %}"> <a class="d-flex align-items-center text-gray-500 h-32 lh-32" href="{% url 'services:offering_detail' offering.cloud_provider.slug offering.service.slug %}">
<span class="pr-10"> <span class="pr-10">
@ -43,6 +44,7 @@
<span>{{ offering.cloud_provider.name }}</span> <span>{{ offering.cloud_provider.name }}</span>
</a> </a>
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>