add external links

This commit is contained in:
Tobias Brunner 2025-01-28 11:00:15 +01:00
parent 7b21d9d612
commit 8ed39690f1
No known key found for this signature in database
5 changed files with 98 additions and 1 deletions

View file

@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Servala - The Cloud Native Services Hub</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
<link rel="stylesheet" type="text/css" href='{% static "css/bootstrap.min.css" %}'>
<style>
.rich-text-content {

View file

@ -32,6 +32,18 @@
<h5>Features</h5>
<p>{{ service.features|safe }}</p>
{% if service.external_links.exists %}
<h5>External Resources</h5>
{% for link in service.external_links.all %}
<a href="{{ link.url }}" target="_blank" rel="noopener noreferrer"
class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
{{ link.description }}
<i class="bi bi-box-arrow-up-right"></i>
</a>
{% endfor %}
{% endif %}
</div>
</div>