csp detail page

This commit is contained in:
Tobias Brunner 2025-01-27 15:54:37 +01:00
parent eb7485e345
commit 600eee2b4c
No known key found for this signature in database
15 changed files with 159 additions and 7 deletions

View file

@ -86,18 +86,26 @@
<h5 class="card-title mb-0">{{ service.name }}</h5>
<div class="d-flex align-items-center mt-2">
{% if service.cloud_provider.logo %}
<img src="{{ service.cloud_provider.logo.url }}" alt="{{ service.cloud_provider.name }} logo" class="me-2" style="max-height: 25px; max-width: 50px; object-fit: contain;">
<a href="{% url 'services:provider_detail' service.cloud_provider.slug %}">
<img src="{{ service.cloud_provider.logo.url }}" alt="{{ service.cloud_provider.name }} logo"
class="me-2" style="max-height: 25px; max-width: 200px; object-fit: contain;">
</a>
{% else %}
<h6 class="card-subtitle text-muted mb-0">
<a href="{% url 'services:provider_detail' service.cloud_provider.pk %}"
class="text-decoration-none text-muted">{{ service.cloud_provider.name }}</a>
</h6>
{% endif %}
<h6 class="card-subtitle text-muted mb-0">{{ service.cloud_provider.name }}</h6>
</div>
</div>
</div>
<p class="card-text">{{ service.description|safe|truncatewords:30 }}</p>
<div class="mb-2">
{% for category in service.categories.all %}
<span class="badge bg-secondary me-1">{{ category.full_path }}</span>
{% endfor %}
</div>
<p class="card-text">{{ service.description|safe|truncatewords:30 }}</p>
<p class="card-text">
<small class="text-muted">
Service Level: {{ service.service_level.name }}<br>