1
0
Fork 0

Add clickable link to services that deployed

This commit is contained in:
lois Verheij 2025-04-01 15:27:53 +02:00
parent 88674c8efc
commit 31c509f4fa
2 changed files with 8 additions and 6 deletions
panel/src/panel

View file

@ -1,13 +1,15 @@
{% if deployment_status %}
{% if deployment_status == "Deployment Succeeded"%}
<p>{{ deployment_status }}</p>
<ul>
{% for service, state in services.items %}
{% if state %}
{% if state.0 %}
<li>
✓ {{ service }}
<a target="_blank" href={{ state.1 }}>{{ service }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% else %}
<p>{{ deployment_status }}</p>
{% endif %}

View file

@ -110,9 +110,9 @@ class DeploymentStatus(ConfigurationForm):
return render(self.request, "partials/deployment_result.html", {
"deployment_status": deployment_status,
"services": {
"peertube": deployment_params['peertube']['enable'],
"pixelfed": deployment_params['pixelfed']['enable'],
"mastodon": deployment_params['mastodon']['enable']
"peertube": (deployment_params['peertube']['enable'], f"https://peertube.{deployment_params['domain']}"),
"pixelfed": (deployment_params['pixelfed']['enable'], f"https://pixelfed.{deployment_params['domain']}"),
"mastodon": (deployment_params['mastodon']['enable'], f"https://mastodon.{deployment_params['domain']}")
}
})