hide offering when provider unlisted
This commit is contained in:
parent
3f6fc4a86e
commit
1a7d1b6c5c
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue