forked from Fediversity/Fediversity
Add clickable link to services that deployed
This commit is contained in:
parent
88674c8efc
commit
31c509f4fa
2 changed files with 8 additions and 6 deletions
panel/src/panel
|
@ -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 %}
|
||||
|
|
|
@ -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']}")
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue